https://github.com/potherca-blog/chess-random-ness
Chess Random Ness
https://github.com/potherca-blog/chess-random-ness
chess chess-ai chess-board chess-engine chess-game chessboard chessprogramm potherca potherca-blog random random-number-generators randomization randomness randomness-testing
Last synced: 3 months ago
JSON representation
Chess Random Ness
- Host: GitHub
- URL: https://github.com/potherca-blog/chess-random-ness
- Owner: potherca-blog
- License: mpl-2.0
- Created: 2022-03-30T20:00:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T02:43:24.000Z (over 1 year ago)
- Last Synced: 2024-04-15T02:46:47.427Z (about 1 year ago)
- Topics: chess, chess-ai, chess-board, chess-engine, chess-game, chessboard, chessprogramm, potherca, potherca-blog, random, random-number-generators, randomization, randomness, randomness-testing
- Language: HTML
- Homepage: https://blog.pother.ca/chess-random-ness/
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chess Random Ness
Recently I came across [an old tweet of mine](https://twitter.com/potherca/status/1445377701896990727?s=20&t=H_hFXDZdm_d_yZLlEC6lzg)
about [an example of Chessboard.js where both sides are played by `Math.random()`](https://chessboardjs.com/examples/5002)For fun, I made [a Codepen based on that example](https://codepen.io/potherca/full/zYpzjqX) that is slightly more sped up.
Of course, as these things do, one thing led to another, so I present to you: CRN (Chess Random Ness)
This is basically a more elaborate version of the orignal demo, with some buttons added and some statistics thrown in.
You can see it in action at: https://blog.pother.ca/chess-random-ness/
## Screenshot

## Example of (roughly) a thousand runs
| | | |
| ------- | --------------------- | ------- |
| Wins | ♚ | 77 |
| | ♔ | 73 |
| Draws | Insufficient Material | 579 |
| | Fifty-move Rule | 230 |
| | Stalemate | 60 |
| | Threefold Repetition | 28 |
| Total | Games | 1047 |
| | Draws | 897 |
| | Wins | 150 |
| | Moves | 362080 |
| Average | Moves per Game | 346 |