This commit is contained in:
parent
f7733c1317
commit
1ff9b33bda
4
Makefile
4
Makefile
@ -28,8 +28,8 @@ obj/%.o:
|
|||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
main: $(OBJFILES)
|
stickfosh: $(OBJFILES)
|
||||||
$(CXX) $(CXXFLAGS) $(OBJFILES) $(LOADLIBES) $(LDLIBS) -o main -lsfml-graphics -lsfml-window -lsfml-system
|
$(CXX) $(CXXFLAGS) $(OBJFILES) $(LOADLIBES) $(LDLIBS) -o stickfosh -lsfml-graphics -lsfml-window -lsfml-system
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf obj/* $(DEPFILES) test_bin/
|
rm -rf obj/* $(DEPFILES) test_bin/
|
||||||
|
14
README.md
14
README.md
@ -60,13 +60,17 @@ This project has undergone multiple AI improvements, including:
|
|||||||
./main
|
./main
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running AI vs AI Matches
|
## Running the Application
|
||||||
|
|
||||||
To watch two AI versions play against each other, modify `main.cpp` to instantiate the desired AI versions and run:
|
Stickfosh provides multiple execution modes, selectable via command-line arguments:
|
||||||
|
|
||||||
```sh
|
| Mode | Description | Example Command |
|
||||||
./main
|
|------|------------|----------------|
|
||||||
```
|
| **Human vs AI** | Play against the AI | `./stickfosh --mode human_vs_ai` |
|
||||||
|
| **AI vs AI** | Watch two AI versions compete | `./stickfosh --mode ai_vs_ai --ai1 v3_AB_ordering --ai2 v6_iterative_deepening` |
|
||||||
|
| **Human vs Human** | Manually input moves for both sides | `./stickfosh --mode human_vs_human` |
|
||||||
|
| **Perft Testing** | Performance test move generation | `./stickfosh --mode perft` |
|
||||||
|
| **Custom FEN** | Start from a custom position | `./stickfosh --mode ai_vs_ai --fen "rnbqkb1r/pppppppp/8/8/8/8/PPPPPPPP/RNBQKB1R w KQkq - 0 1"` |
|
||||||
|
|
||||||
## Video Demo
|
## Video Demo
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user