Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tic-tac-toe hole #1031

Open
btnlq opened this issue Nov 4, 2023 · 0 comments
Open

Add Tic-tac-toe hole #1031

btnlq opened this issue Nov 4, 2023 · 0 comments
Labels
hole-idea An idea for a new hole. idea

Comments

@btnlq
Copy link
Contributor

btnlq commented Nov 4, 2023

Description

Given a tic-tac-toe board state, print a winner, or - if there is none.

Arguments

xox
oxx
xoo
xo 
 o 
xox
oxo
xox
xox

Output

x
o
-

Open question

Are unfinished games allowed? What should you print in this case?

Arguments

   
   
   
  o
xx 
   

Output

?
?

Stats

  • 5478 possible board states
    • 4520 unfinished games
    • 958 finished games
      • 626 x wins
      • 316 o wins
      • 16 draws
@btnlq btnlq added hole-idea An idea for a new hole. idea labels Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hole-idea An idea for a new hole. idea
Projects
None yet
Development

No branches or pull requests

1 participant