Sha256: 61e33dc697298d944863a3d5dc5d878e4a498e5677941879be684aefb10af352
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
# KhetAI Test Harness ## Overview The KhetAI Test Harness provides a GUI for interacting with the KhetAI library. It is built in C++ using the Fast Light Toolkit (FLTK). ### Hot Reload KhetAI Lib - While the GUI is running, you can edit the AI code and reload it into the app by pressing: `Shift + k` ### Select and Move Piece - **Click** a square with a piece on it. - **Click** another square. If there is a piece on it, the two pieces will swap. Otherwise, the piece from the first square will just move to the newly selected square. ### Rotate Piece - **Arrow Keys**: Rotate a piece after it has been clicked. Use the following keys to rotate the selected piece: - `Left Arrow`: Rotate piece counter-clockwise - `Right Arrow`: Rotate piece clockwise ### Fire the Laser - `Space`: Fires the laser from whichever is selected. This is just used for visualization purposes. ### Request AI Move - `Enter`: Uses `khetai_lib` to determine a move for Red. The pieces will move and the laser will fire automatically once it finishes. ### Reset Pieces - Reset all pieces back to their original places by pressing: `r` ![board](assets/example_board.png)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
khetai-0.2.0 | ext/khetai/dev/fltk-ui/README.md |