Earlier quoted context omitted.
> To validate that I made a script that spins up ~600 bots Funny, when I went there were just over 600 active players and things were running super smoothly, even on my mobile. Kudos! Do you see this project and the things you’ve tried applying to other future projects?
Hah, yes, but for testing I removed all my rate limits so I pushed 1 million moves in 2 or 3 seconds, whereas now I think I rate limit people to like 3 or 4 moves a second (which is beyond what I can achieve on a trackpad going as fast as I can!) so the test isn't quite comparable! I definitely learned a lot here. Most of my projects like this are basically just "give the internet access to my computer's memory but w…
One Million Chessboards
71–80 of 82 posts
Re: One Million Chessboards
#72Earlier quoted context omitted.
theoretically there's a design for "indestructible" fortress (rhoburb, you are a genius) 1) fill corner board with pieces 2) cover the border (from inside) with pawns 3) cover the promotion square on the border with the king king can't exit the board, pawns can't walk backward to leave space, filler doesn't allow these 2 to make way --- the real holy grail that will never be achieved I fear
https://onemillionchessboards.com/#4362,7
https://onemillionchessboards.com/#4404,7993
https://onemillionchessboards.com/#2177,7993
https://onemillionchessboards.com/#1787,7994
and one more for white
Re: One Million Chessboards
#73Ah hello! I made this :) My blog describing it is pretty sparse, sorry about that. Happy to answer any questions that folks have about the architecture. Not that it was necessary, but I got really into building this out as a single process that could handle many (10k+/sec) moves for thousands of concurrent clients. I learned a whole lot! And I found golang to be a really good fit for this, since you mostly want to gi…
highest kills by each piece, longest distance travelled (in cells, not in moves)
I've seen promoted-55, I wonder if anyone managed to do promoted-1000
Re: One Million Chessboards
#74Earlier quoted context omitted.
Hah, yes, but for testing I removed all my rate limits so I pushed 1 million moves in 2 or 3 seconds, whereas now I think I rate limit people to like 3 or 4 moves a second (which is beyond what I can achieve on a trackpad going as fast as I can!) so the test isn't quite comparable! I definitely learned a lot here. Most of my projects like this are basically just "give the internet access to my computer's memory but w…
Six weeks is pretty quick! Can I ask what editor you use (always curious), and what other languages you have a background in?
I spent much of my professional career at Jane Street Capital, which means that I spent a long time just writing OCaml and some bash (and a tiny bit of C). I'm very comfortable with Python, and over the last year I've gotten pretty comfortable with frontend javascript. And now golang!
I could probably write semi-reasonable java, ruby, or perl if you gave me a few days to brush up on them. And it'd take me a while before I was happy putting C on the internet. Not sure otherwise.
Re: One Million Chessboards
#75Earlier quoted context omitted.
Hah, yes, but for testing I removed all my rate limits so I pushed 1 million moves in 2 or 3 seconds, whereas now I think I rate limit people to like 3 or 4 moves a second (which is beyond what I can achieve on a trackpad going as fast as I can!) so the test isn't quite comparable! I definitely learned a lot here. Most of my projects like this are basically just "give the internet access to my computer's memory but w…
You ain't the only one who's removed the rate limits lol. Some of these queens are clearing a whole board in like 3s, must've written something to keep a piece selected. This is turning into a race to the godliest piece hackathon.
[1] down to something like 3/sec?
Re: One Million Chessboards
#76Ah hello! I made this :) My blog describing it is pretty sparse, sorry about that. Happy to answer any questions that folks have about the architecture. Not that it was necessary, but I got really into building this out as a single process that could handle many (10k+/sec) moves for thousands of concurrent clients. I learned a whole lot! And I found golang to be a really good fit for this, since you mostly want to gi…
I'm inspired to make something with comparable requirements! Do you need some beefy server to handle the load?
Re: One Million Chessboards
#77Earlier quoted context omitted.
You ain't the only one who's removed the rate limits lol. Some of these queens are clearing a whole board in like 3s, must've written something to keep a piece selected. This is turning into a race to the godliest piece hackathon.
The rate limits aren't that aggressive and have a decent amount of burst, you can get about 10 moves done in 1 second before you hit them and start getting throttled[1]. And of course you can run multiple clients (I account for this too, but I'm not that aggressive because I don't want to punish many people NAT'd behind a single IP) [1] down to something like 3/sec?
As to what you should change, I can't say. It's in the wild now lol.
Re: One Million Chessboards
#78Re: One Million Chessboards
#79Earlier quoted context omitted.
The rate limits aren't that aggressive and have a decent amount of burst, you can get about 10 moves done in 1 second before you hit them and start getting throttled[1]. And of course you can run multiple clients (I account for this too, but I'm not that aggressive because I don't want to punish many people NAT'd behind a single IP) [1] down to something like 3/sec?
I figured the multiple people per ip would be an issue, was wondering if that might be at play here. I thought you said it was already at 3-4/s and I doubted it based on some of what I'm seeing. 10/s tracks a little better. As to what you should change, I can't say. It's in the wild now lol.
I like how generals.io did it where they explicitly made a bot only server/version.