{"id":35320453,"url":"https://github.com/ianivkk/tictactoedqn","last_synced_at":"2026-04-09T02:02:38.279Z","repository":{"id":304895778,"uuid":"1018846012","full_name":"IanivKK/TicTacToeDQN","owner":"IanivKK","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-15T19:11:03.000Z","size":22773,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T04:26:19.712Z","etag":null,"topics":["deep-q-learning","educational-project","game-ai","keras","machine-learning","monte-carlo","python","q-learning","reinforcement-learning","tensorflow","tic-tac-toe"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IanivKK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-13T07:06:07.000Z","updated_at":"2025-07-15T19:21:12.000Z","dependencies_parsed_at":"2025-07-17T05:27:42.461Z","dependency_job_id":null,"html_url":"https://github.com/IanivKK/TicTacToeDQN","commit_stats":null,"previous_names":["yanivkela/tictactoedqn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IanivKK/TicTacToeDQN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanivKK%2FTicTacToeDQN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanivKK%2FTicTacToeDQN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanivKK%2FTicTacToeDQN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanivKK%2FTicTacToeDQN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanivKK","download_url":"https://codeload.github.com/IanivKK/TicTacToeDQN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanivKK%2FTicTacToeDQN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-q-learning","educational-project","game-ai","keras","machine-learning","monte-carlo","python","q-learning","reinforcement-learning","tensorflow","tic-tac-toe"],"created_at":"2025-12-30T21:59:21.493Z","updated_at":"2026-04-09T02:02:38.275Z","avatar_url":"https://github.com/IanivKK.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-Tac-Toe Reinforcement Learning Agents\n\nThis repository contains implementations of three RL agents for Tic-Tac-Toe:\n- Monte Carlo\n- Q-Learning\n- Deep Q-Network (DQN) (with optional Double DQN)\n\n## Setup\n\n```bash\npip install numpy tqdm tensorflow pytest jupyter\n```\n\n## Structure\n\n```\ntic_tac_toe_rl/\n├── README.md\n├── requirements.txt\n├── config.py\n├── env.py\n├── train.py\n├── evaluate.py\n├── agents/\n│   ├── __init__.py\n│   ├── monte_carlo_agent.py\n│   ├── q_learning_agent.py\n│   └── dqn_agent.py\n├── tests/\n│   ├── test_env.py\n│   └── test_agents.py\n└── notebooks/\n    └── Project_4_TicTacToe-Ianivkk.ipynb\n```\n\n## Training\n\n```bash\npython train.py --agent mc --episodes 100000\npython train.py --agent q --episodes 200000\npython train.py --agent dqn --episodes 50000\n```\n\n## Evaluation\n\nPlay mode:\n```bash\npython evaluate.py --agent mc --mode play --games 1000 --model models/mc_model.pkl\n```\n\nHyperparameter tests:\n```bash\npython evaluate.py --agent all --mode test_hyper_param \\\n  --param-name epsilon --param-values 0.1,0.35,0.7,1.0 \\\n  --episodes 50000 --games 1000\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianivkk%2Ftictactoedqn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianivkk%2Ftictactoedqn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianivkk%2Ftictactoedqn/lists"}