Skip to content
Sign UpLog In
Profile icon

YPD

@YPD
  • Sides to diagonals

    Cover page
    Made with Python
    Recent comments (0)
Repls
Community
YPD
YPD
shared a Post
2 years ago
How do I make my chess AI good?
This is kind if like a chess thing. Type a chess algebraic notation to move. Press enter if you want the "AI" to move. It isn't really an AI, though.
Play Chess!
Python
realTronsi
realTronsi
Are you going the AlphaZero route or Stockfish? Stockfish is open source, but it's essentially a brute force approach. You first evaluate the position and prune out some obvious blunders, then you can proceed with the remaining candidates by looking ahead a few turns. AlphaZero however is a neural network, so you can set up a genetic algorithm and have a bunch of neural networks play against themselves. AlphaZero only took 2 hours of training to play better than Stockfish!2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
you can actually make a copmuter one variable, and check all the possible moves.2 years ago
19wintersp
19wintersp
As far as I know, there are two main approaches: simulating the future, which is good for small games, though can be quite intensive; and machine-learning with neural networks. For the former, you simply test every possible move, then every possible move for those options, and every possible move for those options, until someone wins, or the computer breaks. (I used this approach on my Connect Four Bot) Machine-learning, on the other hand, lets the computer play games (often against another AI) 2 years ago
YPD
YPD
shared a Post
2 years ago
I have made a simple web browser. If it doesn't work, then in the shell, type 'pip install PyQtWebEngine', and then press run. You might use the web b
Web Browser
Python
Coder100
Coder100
nope, repl.it doesn't capture them in their display. This is a seriously annoying bug report it here2 years ago
AloeBest
AloeBest
Actually you can do something like this: import keyboard keyboard.pressandrelease('shift, space') keyboard.add_hotkey('ctrl+shift+a', print, args=('triggered', 'hotkey')) `2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
You need to use a module called keyboard to access keys like that. they aren't accessed normally.2 years ago