Skip to content

Commit

Permalink
0.1: Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Dec 6, 2019
1 parent 34edab5 commit 3fd9255
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Marcos Theophilo Gobbi Adamczuk <>
30 changes: 30 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Public Domain Mark 1.0
No Copyright

This work has been identified as being free of known restrictions
under copyright law, including all related and neighboring rights.

You can copy, modify, distribute and perform the work, even for
commercial purposes, all without asking permission. See Other
Information below.

Other Information

The work may not be free of known copyright restrictions in all
jurisdictions.

Persons may have other rights in or related to the work, such as
patent or trademark rights, and others may have rights in how the
work is used, such as publicity or privacy rights.

In some jurisdictions moral rights of the author may persist beyond
the term of copyright. These rights may include the right to be
identified as the author and the right to object to derogatory
treatments.

Unless expressly stated otherwise, the person who identified the work
makes no warranties about the work, and disclaims liability for all
uses of the work, to the fullest extent permitted by applicable law.

When using or citing the work, you should not imply endorsement by
the author or the person who identified the work.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PNAME = domino-ai
CC = gcc
CFLAGS = -Wall
LDFLAGS = -s
VER = 0.1
SRCS = src
PREFIX = /usr/local
INSTALL = install
LN = ln -fs

.PHONY: all clean install

all: $(PNAME)

clean:
rm -f $(PNAME)

$(PNAME): $(SRCS)/lista.c $(SRCS)/domino.c $(SRCS)/main.c
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)

install: $(PNAME)
$(INSTALL) -d $(PREFIX)/bin
$(INSTALL) -m 0755 $(PNAME) $(PREFIX)/bin/
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# DOMINO-AI

C implementation game DOMINO.

```sh
Para jogar uma peça insira os seus dois números, para pescar insira -1 -1 e para pular a vez -2 -2.

Mesa
|---------||---------||---------||---------|
|ooo |ooo ||ooo |o ||o |o ||o |o |
|ooo |o o ||o o | o || o |o o ||o o | |
|---------||---------||---------||---------|
|---------||---------||---------||---------|
|o |ooo ||ooo |ooo ||ooo |o o ||o o |o |
| |ooo ||ooo |ooo ||ooo |o o ||o o |o o |
|---------||---------||---------||---------|
|---------||---------||---------||---------|
|o |ooo ||ooo | || | || |o |
|o o |ooo ||ooo | || | || |o o |
|---------||---------||---------||---------|
|---------||---------||---------||---------|
|o |ooo ||ooo | || |o ||o |o |
|o o |o o ||o o | || | || | |
|---------||---------||---------||---------|
|---------||---------|
|o |o ||o |ooo |
| | o || o |ooo |
|---------||---------|
Seu deck
|---------||---------||---------||---------|
|o |o ||o |ooo || |o o || |o |
|o o |o o || |o o || |o o || | o |
|---------||---------||---------||---------|
|---------||---------|
|o o |ooo ||ooo |ooo |
|o o |o o ||o o |o o |
|---------||---------|
O computador tem 4 peças
Sua jogada: -1 -1
Você perdeu.
```

SRC: https://github.com/MacPardo/domino-AI

FORK: https://github.com/World-of-Domino/domino-ai

2019 zvezdochiot.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3fd9255

Please sign in to comment.