r/code • u/Lunatikub • Oct 20 '20
Bot 2048 – Create an artificial player for 2048
Hello,
The goal of this project is not to have the perfect bot 2048 but a comprehensible code, strategy and algorithms. Moreover I tried to detail and explain all aspects with a post here.
Enjoy the read !
https://thomas-joly.com/bot-2048-create-an-artificial-player/
9
Upvotes
1
u/shumumazzu Oct 20 '20
First move down, then left, rinse repeat. You'll do fairly well. Given enough time it will do really well.
3
u/Lunatikub Oct 20 '20
First move down, then left, rinse repeat. You'll do fairly well. Given enough time it will do really well.
I guess you win 1 game on 1000000 with this strategy.
I tried 3 times your strategy, never go more than 32 ;)
1
3
u/MrSlow1011 Oct 20 '20
Code Bullet made a video making one, you should check it out!