diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..b4d9981 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Giovanni Oliveira diff --git "a/Documentos/.~lock.Pseudoc\303\263digo.odt#" "b/Documentos/.~lock.Pseudoc\303\263digo.odt#" deleted file mode 100644 index fc79245..0000000 --- "a/Documentos/.~lock.Pseudoc\303\263digo.odt#" +++ /dev/null @@ -1 +0,0 @@ -,giovanni,HAL-9000,21.11.2014 23:55,file:///home/giovanni/.config/libreoffice/4; \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..55b6e56 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f3fdba9 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +PNAME = dominogame +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)/domino.h $(SRCS)/main.c $(SRCS)/domino.c + $(CC) $(CFLAGS) $(SRCS)/main.c -g -L $(SRCS)/domino.c -o $@ $(LDFLAGS) + +install: $(PNAME) + $(INSTALL) -d $(PREFIX)/bin + $(INSTALL) -m 0755 $(PNAME) $(PREFIX)/bin/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..a7a7db1 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# DominoGame + +Simple dominoes game implementation in c. + +```sh +Rodada 15: +Mesa: +[3|5] [5|4] [4|4] [4|6] [6|5] [5|5] [5|1] [1|3] [3|4] [4|1] [1|1] [1|0] [0|6] [6|3] [3|3] +Sua mão: +[2|2] +[Comprar] +``` + +SRC: https://github.com/giovannioliveira/DominoGame + +FORK: https://github.com/World-of-Domino/dominogame + +2019 zvezdochiot. diff --git a/build.sh b/build.sh deleted file mode 100755 index 6c38cad..0000000 --- a/build.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -rm main -gcc main.c -g -L domino.c -o main - -if [ $# -eq 1 ] && [ $1 = "0" ] -then - ./main -elif [ $# -eq 1 ] && [ -r $1 ] -then - ./main < $1 -else - echo "To execute program type ./main" -fi diff --git "a/Documentos/Estrat\303\251gia.odt" "b/doc/Estrat\303\251gia.odt" similarity index 100% rename from "Documentos/Estrat\303\251gia.odt" rename to "doc/Estrat\303\251gia.odt" diff --git "a/Documentos/Pseudoc\303\263digo.odt" "b/doc/Pseudoc\303\263digo.odt" similarity index 100% rename from "Documentos/Pseudoc\303\263digo.odt" rename to "doc/Pseudoc\303\263digo.odt" diff --git a/Documentos/Relatorio.odt b/doc/Relatorio.odt similarity index 100% rename from Documentos/Relatorio.odt rename to doc/Relatorio.odt diff --git a/Documentos/trab2.pdf b/doc/trab2.pdf similarity index 100% rename from Documentos/trab2.pdf rename to doc/trab2.pdf diff --git a/input b/input deleted file mode 100644 index f25c3b9..0000000 --- a/input +++ /dev/null @@ -1,4 +0,0 @@ -giovanni -6 -2 -6 diff --git a/main b/main deleted file mode 100755 index 7a819d6..0000000 Binary files a/main and /dev/null differ diff --git a/domino.c b/src/domino.c similarity index 100% rename from domino.c rename to src/domino.c diff --git a/domino.h b/src/domino.h similarity index 100% rename from domino.h rename to src/domino.h diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c