Skip to content

NinadKarlekar/TicTacToe-With-Min-Max

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe-With-Min-Max

INDEX

  1. Basic User interface
  2. X wins
  3. Tie
  4. CODE
  5. BoardLayout
  6. Score
  7. Mousepressing
  8. CheckingPossibleWays
  9. DrawLines
  10. DrawXandO
  11. CSS
  12. MinMaxAlgorithm
  13. Minimizing
  14. Maximizing

BasicUserInterface

image

Xwins

image

Tie

image


CODE

BoardLayout

board layout

Score

score

Mousepressing

Human move will be recorded after mousepressing HumanMove

CheckingPossibleWays

Check for horizontal ,vertical and diagonal possible win horizontal

DrawLines

For adding grid lines

4Lines

DrawXandO

For adding X and O on board

X and O in board

CSS

CSS

MinMaxAlgorithm

Whole MinMax algorithm code minmax

Minimizing

let score = minimax(board, depth + 1, true); there is true because next move is of maximizer minimizing

Maximizing

let score = minimax(board, depth + 1, false); there is false because next move is of minimizer Maximizing

About

TicTacToe With Min-Max

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published