Skip to content

Programming class activity that I use recursive functions to predict the winner of the tic-tac-toe game

Notifications You must be signed in to change notification settings

ericlbarreto/tic-tac-toe-predict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€” Context

An activity passed on by the programming class had the context of the game Zelda, in which the character Link explored Hyrule, discovering some paintings that resemble our current game of tic-tac-toe, so Link needed a tool to predict who would win such games.

πŸ“ƒ Input instructions

You will need to assemble a table that represents the game you want to predict the result, i will leave some examples below:

o|_|x
_|x|o
_|_|_

_|_|_
o|_|_
x|_|_

How to use:

Requirements:

  • Python

git clone https://github.com/ericlbarreto/tic-tac-toe-predict.git

Run the code and paste the input you want to predict, remembering to follow the structure of the game.

πŸ“š New learnings

  • Using recursive functions in python to explore possibilities

  • Knowledge of the MinMax algorithm for analysis of better decisions, minimizing the possible maximum loss

  • Knowledge of applying binary trees

About

Programming class activity that I use recursive functions to predict the winner of the tic-tac-toe game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages