Permalink
Browse files

Merge branch 'master' of github.com:Taldrain/GogoGame

Conflicts:
	src/building/group_again.ml
	test/group_managerTest_pos.ml
  • Loading branch information...
2 parents 36131e8 + 17df5ad commit 182f29dd6dc266b4feeee00fcdf974788bb556a5 Jizzy committed May 15, 2012
Showing 3,074 changed files with 3,348 additions and 466,780 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
View
@@ -15,5 +15,11 @@
.depend
_build/
*.native
+gogogame
vendor/*
+*.aux
+*.idx
+*.log
+*.toc
+
View
14 COPYING
@@ -0,0 +1,14 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
View
@@ -1,10 +1,10 @@
-# A DECOMMENTER POUR AUGMENTER LA VITESSE
+# Decomment it in order to put nitroglycerin into the engine
#NEED_FOR_SPEED := 1
FLAGS := -use-ocamlfind -j 0 -ocamlopt ocamlopt.opt -ocamlc ocamlc.opt -log out.log
ifdef NEED_FOR_SPEED
- FLAGS := $(FLAGS) -cflags -noassert,-unsafe,-rectypes -tag "incline(1000)"
+ FLAGS := $(FLAGS) -cflags -noassert,-unsafe,-rectypes -tag "inline(1000)"
OPTFLAGS := -cflags -nodynlink,-ffast-math
endif
@@ -14,35 +14,42 @@ PKG := -pkg batteries -tag thread
CC := ocamlbuild
COMPILE := $(CC) $(FLAGS) $(PKG) $(INC)
-TEST_FLAGS := -pkg oUnit -I test -I test/utils
+#TEST_FLAGS := -pkg oUnit -I test -I test/utils
-all: speed_test
-exe: native
+all: native
+#test : speed_test exe
native:
$(COMPILE) main.native
+ @cp ./main.native gogogame
+ @rm *.native
bytecode:
$(COMPILE) main.byte
debug:
$(COMPILE) main.d.byte
-speed_test: native
- @echo "****************************************"
- @echo "Compiling regression test..."
- @$(COMPILE) $(TEST_FLAGS) -quiet testing.native
- @echo "Beginning speed tests..."
- @./testing.native
- @echo
- @echo "****************************************"
-
-test: speed_test
- @echo "****************************************"
- @echo "Compiling long running test..."
- @$(COMPILE) $(TEST_FLAGS) -quiet long_testing.native
- @echo "Beginning long running test..."
- @./long_testing.native
- @echo
- @echo "****************************************"
-
+#speed_test: native
+# @echo "****************************************"
+# @echo "Compiling regression test..."
+# @$(COMPILE) $(TEST_FLAGS) -quiet testing.native
+# @echo "Beginning speed tests..."
+# @./testing.native
+# @echo
+# @echo "****************************************"
+#
+#test: speed_test
+# @echo "****************************************"
+# @echo "Compiling long running test..."
+# @$(COMPILE) $(TEST_FLAGS) -quiet long_testing.native
+# @echo "Beginning long running test..."
+# @./long_testing.native
+# @echo
+# @echo "****************************************"
+#
clean:
ocamlbuild -clean
+
+cleanall:
+ rm -f gogogame
+ rm -rf _build/
+mrproper: cleanall
View
67 README
@@ -1,22 +1,51 @@
GogoGame
- A student project for a Go Game
- Developpement in progress
+ A student project for a Go Game in OCaml
1. Why ?
-This project has been created in the context of a AI class of the University of
-Shanghai.
-It's a project who will be used to understand how to program an AI and must not
-be taken as a real simulation of a go game.
-
-2. Utilisation
-Everything is still not implemented.
-If you want to pass you have to enter the coordonnees Z and 0.
-
-3. Todo
- - Finish the interface for be able to play
- - make the game engine
- - try to output some fancy/useful things
- - Prepare an good way to implement the AI
- - Learn English
-
-
+ This project has been created in the context of a AI class of the Shanghai
+Jiao Tong University.
+ This project regroup the students:
+ Thomas Wickam, 7090309125
+ Alonso Giraldo, 7090309109
+ Jimmy Lanclume, 7090309127
+ Thomas Mariaux, 7090309117
+
+
+
+2. Dependences
+
+This project has been coded with linux tools, under the distributions Ubuntu
+and Arch Linux.
+As OCaml is a multiplateform language, you can certainly compile it for Windows
+and Mac, but it will be painfull.
+
+ List of package needed for:
+
+ ** Ubuntu:
+ ocaml-native-compilers
+ ocaml-findlib
+ libbatteries-ocaml-dev
+ oasis
+
+ ** Archlinux:
+ ocaml
+ ocaml-findlib
+ ocaml-batteries (in the AUR)
+
+
+3. Installation
+ After all dependences are install we can use these command to interact with the
+project:
+
+ To compile the project:
+ $ make
+
+ You should know have access to the binaries of the project "gogogame" at the
+root of the directory
+
+ You can then clean the directory:
+ $ make clean
+
+ Or call for a spring clean:
+ $ make mrproper
+
View
@@ -1,4 +0,0 @@
-
-BLACK="/usr/games/gnugo --mode gtp --level 5"
-WHITE="./vendor/mogor --13"
-gogui -program "gogui-twogtp -black \"$BLACK\" -white \"$WHITE\" -size 13"
View
Binary file not shown.
View
@@ -0,0 +1,5 @@
+Thomas Wickham 7090309125
+Alonso Giraldo 7090309109
+Jimmy Lanclume 7090309127
+Thomas Mariaux 7090309117
+
View
@@ -0,0 +1,14 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
View
@@ -0,0 +1,55 @@
+# Decomment it in order to put nitroglycerin into the engine
+#NEED_FOR_SPEED := 1
+
+FLAGS := -use-ocamlfind -j 0 -ocamlopt ocamlopt.opt -ocamlc ocamlc.opt -log out.log
+
+ifdef NEED_FOR_SPEED
+ FLAGS := $(FLAGS) -cflags -noassert,-unsafe,-rectypes -tag "inline(1000)"
+ OPTFLAGS := -cflags -nodynlink,-ffast-math
+endif
+
+INC := -I src -I src/building -I src/talking -I src/thinking -I src/thinking/algos
+PKG := -pkg batteries -tag thread
+
+CC := ocamlbuild
+COMPILE := $(CC) $(FLAGS) $(PKG) $(INC)
+
+#TEST_FLAGS := -pkg oUnit -I test -I test/utils
+
+all: native
+#test : speed_test exe
+
+native:
+ $(COMPILE) main.native
+ @cp ./main.native gogogame
+ @rm *.native
+bytecode:
+ $(COMPILE) main.byte
+debug:
+ $(COMPILE) main.d.byte
+
+#speed_test: native
+# @echo "****************************************"
+# @echo "Compiling regression test..."
+# @$(COMPILE) $(TEST_FLAGS) -quiet testing.native
+# @echo "Beginning speed tests..."
+# @./testing.native
+# @echo
+# @echo "****************************************"
+#
+#test: speed_test
+# @echo "****************************************"
+# @echo "Compiling long running test..."
+# @$(COMPILE) $(TEST_FLAGS) -quiet long_testing.native
+# @echo "Beginning long running test..."
+# @./long_testing.native
+# @echo
+# @echo "****************************************"
+#
+clean:
+ ocamlbuild -clean
+
+cleanall:
+ rm -f gogogame
+ rm -rf _build/
+mrproper: cleanall
View
@@ -0,0 +1,50 @@
+ GogoGame
+ A student project for a Go Game in OCaml
+
+1. Why ?
+ This project has been created in the context of a AI class of the Shanghai
+Jiao Tong University.
+ This project regroup the students:
+ Thomas Wickham, 7090309125
+ Alonso Giraldo, 7090309109
+ Jimmy Lanclume, 7090309127
+ Thomas Mariaux, 7090309117
+
+
+
+2. Dependences
+
+This project has been coded with linux tools, under the distributions Ubuntu
+and Arch Linux.
+As OCaml is a multiplateform language, you can certainly compile it for Windows
+and Mac, but it will be painfull.
+
+ List of package needed for:
+
+ ** Ubuntu:
+ ocaml-native-compilers
+ ocaml-findlib
+ libbatteries-ocaml-dev
+
+ ** Archlinux:
+ ocaml
+ ocaml-findlib
+ ocaml-batteries (in the AUR)
+
+
+3. Installation
+ After all dependences are install we can use these command to interact with the
+project:
+
+ To compile the project:
+ $ make
+
+ You should know have access to the binaries of the project "gogogame" at the
+root of the directory
+
+ You can then clean the directory:
+ $ make clean
+
+ Or call for a spring clean:
+ $ make mrproper
+
Oops, something went wrong.

0 comments on commit 182f29d

Please sign in to comment.