Tabletop Simulator

Tabletop Simulator

Not enough ratings
Chess Against the Machine (Alpha) - chess engine/AI/computer
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
107.437 KB
Jan 19, 2021 @ 6:36pm
Jan 23, 2021 @ 8:32am
2 Change Notes ( view )

Subscribe to download
Chess Against the Machine (Alpha) - chess engine/AI/computer

Description
Chess Against the Machine is a mod that lets you play chess against the computer!

How does it work?
You play just like you normally would: by picking up and moving your in-game pieces. The mod detects your move and sends it to the chess engine, which then calculates its move in response. Once the mod receives the engine's move, it physically executes the move on the board.

Features:
- Chess engine incorporated directly into TTS's runtime environment
- Player moves detected automatically
- Engine moves played automatically on the chess board
- Fully traversable game history, including the ability to play a different variation at a previous turn (subsequent history will be erased, and not available after game ends)

Please note: Chess Against the Machine is in alpha and has substantial limitations and bugs, both known and unknown. Limitations:
- Running the engine inside TTS makes it abnormally slow and limits its playing ability—it probably won't be a match for an expert
- Moving pieces erratically may cause bugs
- Saving and loading aren't implemented—attempting to save and load will probably break the game
- The engine can't detect checks, so players can move/leave the king in check, causing it to be captured

Want to make this mod better? Great! Visit https://github.com/chowington/chess-against-the-machine

----------

Image credits:
Chess knight icon made by Pixel perfect from www.flaticon.com
Laptop icon made by Freepik from www.flaticon.com
6 Comments
trar Jun 17, 2024 @ 7:43am 
This is an awesome idea and I hope it continues to be improved.
Tigby Nov 21, 2023 @ 7:47pm 
after a few games ive noticed a pattern of the bot putting itself in check a couple times. when there's a clear mate in 2 it almost resigns by putting the king in lign of sight of my queen. It also allows you to CAPTURE the king, thought that was funny
Gudan Aug 23, 2021 @ 11:49pm 
this is awesome!
Conman66  [author] Jan 23, 2021 @ 8:56am 
@Enderspoons Thanks for the feedback! The inability to move a pawn two spaces is a side effect of the mod not being able to handle low lift heights, a bug that was brought to my attention; that should be fixed now. Try out the new update and let me know how it goes!
Tragic Jan 22, 2021 @ 3:33pm 
cool stuff...
Enderspoons Jan 22, 2021 @ 2:19pm 
Well done, sir! However, I am noticing that the game does not pick up on moving pawns two spaces forward.