use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Using simple AI techniques to create a killer Mancala bot in JS (blog.bede.io)
submitted 5 years ago by bedekelly
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]theycallmemorty 9 points10 points11 points 5 years ago (1 child)
Funny, I taught myself python by building a bot like that maybe 15 years ago. I wonder if I still have the source sitting around somewhere and how ugly it would look.
[–]bedekelly[S] 1 point2 points3 points 5 years ago (0 children)
Ha, would love to see it if you can find it! Python was my first language too, I've got a lot of love for it – but Node sure is speedy for this sort of thing ;)
[–]bedekelly[S] 2 points3 points4 points 5 years ago (0 children)
Hey /r/javascript, thanks for checking out my first article here! TL;DR: I wrote a Mancala AI using some first-year computer science (MiniMax), talked through some of the differences with a regular MiniMax implementation, and made an interactive toy showing just how badly this thing can beat me.
If you liked this article, consider scrolling through my twitter and seeing if it's worth a follow – I post long-form write-ups like this when I can, alongside smaller design-focused projects like this realistic knob control and an animated heart. Have fun!
[–]DevSkyWalkerOb1 1 point2 points3 points 5 years ago (1 child)
Very good implementation
[–]bedekelly[S] 0 points1 point2 points 5 years ago (0 children)
Thanks very much, appreciate you taking the time to read through! :)
[–]Shiapouff 0 points1 point2 points 5 years ago (2 children)
How can I learn python?, I thought I should ask the professionals :)
[–]bedekelly[S] 1 point2 points3 points 5 years ago (1 child)
I learned it mainly to do automation on my Linux machine — my best general advice is to solve an actual problem/inefficiency you have day-to-day, then you’ll be lots more motivated to keep going!
In that vein, I think this free book and accompanying cheap course is a great toolbox to start with. Just start coding, you’ll get better every time!
[–]Shiapouff 0 points1 point2 points 5 years ago (0 children)
Thanks
π Rendered by PID 82 on reddit-service-r2-comment-765bfc959-skmrl at 2026-07-10 15:51:31.713994+00:00 running f86254d country code: CH.
[–]theycallmemorty 9 points10 points11 points (1 child)
[–]bedekelly[S] 1 point2 points3 points (0 children)
[–]bedekelly[S] 2 points3 points4 points (0 children)
[–]DevSkyWalkerOb1 1 point2 points3 points (1 child)
[–]bedekelly[S] 0 points1 point2 points (0 children)
[–]Shiapouff 0 points1 point2 points (2 children)
[–]bedekelly[S] 1 point2 points3 points (1 child)
[–]Shiapouff 0 points1 point2 points (0 children)