ElectroBit
ElectroBit
83 / 7
13th September
17th October
Play Nim against a machine! Instructions on how to play Nim are inside the save. [The save should be have exactly 48212 pixels when not in operation.]
computer game nim nimble cantwin literallyawesome idontgetit

Comments

  • Damian97
    Damian97
    19th September
    Yep, if we add all matches, it'll leave us with even number. When it comes to 1 or 2 matches left, then it acts as needed to win. I have tried to play with it multiple time, tried to copy it's strategy. All went to nothing because of the amount of matches left. Winning combinaion will be like: 1-0-6-0 or 1-1-2-0, which bot avoids to do.
  • ElectroBit
    ElectroBit
    19th September
    It will sometimes do something different like here ID:2187741
  • Damian97
    Damian97
    19th September
    I see. I studied it even more. It always equalizes 2 rows. Because of that, it'll never let you win, as you must to take equalizing role in your hands to win it. But overall it's pretty entertaining to try and reverse engineer it. +1
  • 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.