question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle the AI in Tic-Tac-Toe requester check.

See original GitHub issue

Description

image

The !ttt command currently has a is_requester_free check, which ensures that players cannot run more than one game at a time. To reproduce, run .ttt and then while the game is still running, run .ttt again from another user.

However, the check does not check for games played against the AI class when getting the Discord user for a player in each game, resulting in an AttributeError.

Would you like to implement a fix?

  • I’d like to implement the bug fix
  • Anyone can implement the bug fix

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
OculusModecommented, Jun 9, 2021

Hey, @kosayoda @Shivansh-007 I’d like to give this a go.

0reactions
Shivansh-007commented, Oct 11, 2021

Issue* 🙃

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Part 4) Visual Studio Winform Tic Tac Toe Tutorial with AI ...
This tutorial demonstrates how to create an AI engine for the tic tac toe game so that users may play against the computer....
Read more >
Adding Artificial Intelligence (AI) to the Tic-Tac-Toe App
This method injects data (current state of the game) from the app and sends it to the tictactoe-ai node. var request = webOS.service.request(" ......
Read more >
Tic-tac-toe - Minimax is a AI algorithm. - GitHub
An implementation of Minimax AI Algorithm on Tic-Tac-Toe (or Noughts and Crosses) ... The algorithm search, recursively, the best move that leads the...
Read more >
An AI agent plays tic-tac-toe (part 2): speeding up recursive ...
An AI agent plays tic-tac-toe (part 2): speeding up recursive functions using memoization. Where we increase the speed of a brute force tree ......
Read more >
How can I test if my Tic Tac Toe A.I. is perfect? - Stack Overflow
I made a tic tac toe A.I. Given each board state, my A.I. will return 1 exact place to move. (Even if moves...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found