Skip to content

milkyklim/holo-matchmaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nim implementation on Holochain

Holochain DevCamp - June 2019

Reference: wikipedia.org.

Implementation: https://github.com/milkyklim/holo-nim-game.

Rules:

  • Game starts with 3 piles of [x_, y, z] stones.
  • Players take turns: one player can take more than 1 turn in a row.
  • Player has to remove at least one stone from the pile.
  • Player can't remove stones from more than one pile simultaneously.
  • Player who can't remove a stone loses.

Move description:

{
    game: "QmHashOfGame123",
    author: "QmMyAgentAddress000",
    previous_move: "QmHashOfPreviousMove"
    move_type: {
        RemoveStone: {
            from: {x: 1, y: 2, z: 3},
            to: {x: 1, y: 2, z: 0}.
        }
    }
}

Game state:

{
    complete: false,
    stones: [{x: 1, y: 2, z: 3}],
    player_1: {
        resigned: false,
    }
    player_2: {
        resigned: false,
    }
}

About

Matchmaking for Holochain DevCamp - June 2019

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published