Skip to content

Commit

Permalink
1.0: Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Dec 11, 2021
1 parent de9527a commit e7e4976
Show file tree
Hide file tree
Showing 30 changed files with 675 additions and 623 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
PROJECT = dominoes
CC = gcc
CFLAGS = -Wall
LDFLAGS = -s
PREFIX = /usr/local
SRCS = src
INSTALL = install
RM = rm -f

.PHONY: all clean install

all: $(PROJECT)

$(PROJECT): $(SRCS)/game.c $(SRCS)/main.c $(SRCS)/move.c $(SRCS)/player.c $(SRCS)/questions.c $(SRCS)/random.c $(SRCS)/sleep.c $(SRCS)/stack.c $(SRCS)/table.c $(SRCS)/tile.c
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

clean:
$(RM) $(PROJECT) $(PROJECT).exe

install: $(PROJECT)
$(INSTALL) -d $(PREFIX)/games
$(INSTALL) -m 0755 $(PROJECT) $(PREFIX)/games
$(INSTALL) -d $(PREFIX)/share/doc/$(PROJECT)
$(INSTALL) -m 0644 LICENSE README.md $(PREFIX)/share/doc/$(PROJECT)
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/World-of-Domino/dominoes)
![GitHub Release Date](https://img.shields.io/github/release-date/World-of-Domino/dominoes)
![GitHub repo size](https://img.shields.io/github/repo-size/World-of-Domino/dominoes)
![GitHub all releases](https://img.shields.io/github/downloads/World-of-Domino/dominoes/total)
![GitHub](https://img.shields.io/github/license/World-of-Domino/dominoes)

# Dominoes
Single-player command line dominoes game with up to three machine players. It can be played displaying 2D tiles

Single-player command line dominoes game with up to three machine players. It can be played displaying 2D tiles

## Board

```sh
===>>> HA GANADO EL J1! :/ <<<===

FINAL STATE OF THE GAME:

Pila: La pila esta vacia
Table:
3|___ ___ ___ 0|___ ___ ___ ___ 6|___ ___ 4|___ ___ 2|___ ___ ___ ___ ___ 1|___ ___
-|3:5|5:1|1:0|-|0:2|2:4|4:3|3:6|-|6:0|0:4|-|4:5|5:2|-|2:6|6:1|1:3|3:2|2:1|-|1:4|4:6|
3| 0| 6| 4| 2| 1|

J0 5:5|Humano
J1 Robot
J2 0:3|Robot
J3 0:5|5:6|Robot
```
27 changes: 0 additions & 27 deletions game.h

This file was deleted.

21 changes: 0 additions & 21 deletions main.c

This file was deleted.

122 changes: 0 additions & 122 deletions move.c

This file was deleted.

117 changes: 0 additions & 117 deletions player.c

This file was deleted.

41 changes: 0 additions & 41 deletions questions.c

This file was deleted.

Loading

0 comments on commit e7e4976

Please sign in to comment.