ElectroBit
ElectroBit
82 / 7
13th September
21st September
Play Nim against a machine! Instructions on how to play Nim are inside the save.
game computer nim nimble cantwin literallyawesome idontgetit

Comments

  • ElectroBit
    ElectroBit
    19th September
    The key to Nim is not to even out rows, but to make the XOR result (aka "Nim Sum") of the number of matchsticks in each row equal to zero. In this 4-5-6-7 configuration the Nim Sum is equal to zero.
  • ElectroBit
    ElectroBit
    19th September
    This is not the only strategy. If you make it impossible for it to even out the amount of matchsticks in each row it will use different strategies. For example, at the start of the game, you can remove one red matchstick.
  • Damian97
    Damian97
    19th September
    Analyzed deeper the bot and the game, I can say chances to win are none, because of the rows. 4 rows will always give bot chance to win. As for player, luck will never be on his side because they will always get move when there are even amount of matches on 2 rows. The strategy is to leave your opponent with only 4 matches with 2 on each row. Bot will never let you do that
  • Damian97
    Damian97
    19th September
    Nvm about both. It was jacob1's mod sheningans. It's pretty interesting game, but the fact that bot always moves 2nd prevents you from changing places with it. So you'll always end up losing. It always tries to save 2 sticks on 2 rows, which is pretty clever move.
  • Damian97
    Damian97
    19th September
    Nvm about 2nd one, it's jacob1's mod thing
  • Damian97
    Damian97
    19th September
    And another win, yet I can't end because your bot decided to break itself. 2187727
  • Damian97
    Damian97
    19th September
    ElectroBit: I supposedly could win, since I've got a situation, where bot have to remove last stick. 2187725 - id. The problem is that I have 2 sticks left on my turn and game believes that I lost.
  • Rocked03
    Rocked03
    19th September
    aaa y it so hard
  • ElectroBit
    ElectroBit
    19th September
    This machine is more complicated than that. For example, at the beginning of the game, if you take one red matchstick, the machine will take three yellow matchsticks, leaving 3, 2, 6 and 7 matchsticks. It also is smart enough to turn the tables at the last second.
  • funky3000
    funky3000
    19th September
    Seems to always make it's stack of choice match to the shorter stack, which pretty much guarantees a stalemate I think