Python tic tac toe state generator.
Project description
Simple python implementation of Tic Tac Toe.
Designed to make GPT able to recognize valid moves in Tic Tac Toe
$ pip install tictactoe-gpt-finetuning
Examples
Generate a game:
import tictactoe_gpt_finetuning as tictactoe
print( tictactoe.generate_random_game() )
Generate many games:
import tictactoe_gpt_finetuning as tictactoe
print( tictactoe.generate_n_games() )
Initialize and use the game board to place in top left:
import tictactoe_gpt_finetuning as tictactoe
b = tictactoe.BoardState()
b.make_move( 0, 0, 'x' )
print( b )
# output:
# x - -
# - - -
# - - -
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for tictactoe-gpt-finetuning-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d0044ba326b77be24a678ff4e28f85df4d6f31adfe13ce3336f4eea24128dd |
|
MD5 | 566c3c73dd52c5ff1ab3a5ed80fd1b55 |
|
BLAKE2b-256 | 7b8f3376235d1e8c4845037ba7ff176136324f005ee63642d33378278caaf960 |