From: Samuel Moore Date: Thu, 12 Jan 2012 12:24:41 +0000 (+0800) Subject: Trivial changes to webpage X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=1dc2550dc93d6b0ab2cde1cd2fc76a2cf45faf21;p=progcomp2012.git Trivial changes to webpage --- diff --git a/judge/manager/Makefile b/judge/manager/Makefile index 37b2c29..6a35950 100644 --- a/judge/manager/Makefile +++ b/judge/manager/Makefile @@ -1,9 +1,10 @@ #Makefile for Stratego #Use this to build with graphics -#CPP = g++ -Wall -pedantic -lSDL -lGL -lpthread -g +#LIBRARIES = -lSDL -lGL -lpthread #Use this to build without graphics -CPP = g++ -Wall -pedantic -lpthread -g +LIBRARIES = -lpthread +CPP = g++ -Wall -pedantic -g OBJ = main.o controller.o ai_controller.o human_controller.o program.o thread_util.o stratego.o graphics.o game.o BIN = stratego @@ -11,7 +12,7 @@ BIN = stratego $(BIN) : $(OBJ) - $(CPP) -o $(BIN) $(OBJ) + $(CPP) -o $(BIN) $(OBJ) $(LIBRARIES) diff --git a/web/doc/manager_manual.txt b/web/doc/manager_manual.txt index d8b7a68..5fc8d4e 100644 --- a/web/doc/manager_manual.txt +++ b/web/doc/manager_manual.txt @@ -231,12 +231,14 @@ BUILDING To enable graphics: 1. Ensure that the first line of the source file "graphics.h" reads: #define BUILD_GRAPHICS - 2. In "Makefile", uncomment the line "CPP = g++ -Wall -pedantic -lSDL -lGL -g" and comment out the line "CPP = g++ -Wall -pedantic -g" + 2. In "Makefile", uncomment the line "LIBRARIES = -lSDL -lGL -lpthread" + and comment out the line "LIBRARIES = -lpthread" To disable graphics: 1. Comment out the first line of "graphics.h" i.e ensure that it reads: //#define BUILD_GRAPHICS - 2. In "Makefile", uncomment the line "CPP = g++ -Wall -pedantic -g" and comment out the line "CPP = g++ -Wall -pedantic -lSDL -lGL -g" + 2. In "Makefile", uncomment the line "LIBRARIES = -lpthread" + and comment out the line "LIBRARIES = -lSDL -lGL -lpthread" If you intend to build with graphics enabled, you will need the SDL and OpenGL developement libraries installed first. If you intend to use graphics, please ensure the "images" directory is located in the executable's run directory. diff --git a/web/faq.html b/web/faq.html index bc76af2..2e04c5b 100644 --- a/web/faq.html +++ b/web/faq.html @@ -72,6 +72,12 @@

Q: I don't know how to program, but am interested in the competition, what should I do?

A: You will have to learn how to program; the best way to do this is by a combination of the internet and trial and error. Look at the sample AI programs for a reference.

+
  • +

    Q: Is windows supported?

    +

    A: One day, when I am feeling particularly cheerful and need depressing, I will attempt to get things to work on windows.

    + +

    (tl;dr NO)

    +
  • diff --git a/web/index.html b/web/index.html index 0078a08..beb0d2f 100644 --- a/web/index.html +++ b/web/index.html @@ -30,6 +30,17 @@

    Human players are also supported, although the interface is minimal, as this feature is meant for testing.

    If you just want to play a game, without having to write your own AI, try Probe

    +

    Windows Support

    +

    Windows is not supported at this stage.

    +

    Why? Because windows doesn't have fork, or pthread, which I used to write the program because they work on linux, and I use debian.

    + +

    Bug reports

    +

    Please report bugs to matches@ with a detailed description, and if possible, the output of gdb, valgrind, or both :)

    +
    Known Bugs
    +
      +
    1. Ash reported a segfault upon every program start, running under Ubuntu. I can't replicate this bug, and don't have any other information.
    2. +
    +

    Screenshot

    Graphical output of 'stratego' manager program.