Share your repls and programming experiences

← Back to all posts
Node.js Impossible Nims AI
bearbearmo (188)

This is a very simple and short AI, in total the AI is one line long.

  else nimstot -= nimstot % 4 == 0 ? Math.ceil(Math.random() * 3) : nimstot % 4

A tutorial and explanation for the rest of the code can be found here:
Good luck.

kingjames_i (1)

I've made my own version of this game.

bearbearmo (188)

@nithilan4 that's the point, you can't beat it