Ludii Forum
Inkblots - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Submit Your Games (https://ludii.games/forums/forumdisplay.php?fid=23)
+--- Thread: Inkblots (/showthread.php?tid=133)



Inkblots - AlekErickson - 08-15-2020

(game "Inkblots"
(players 2)

(equipment
{
(board (tri Hexagon <Board>))
(piece "Disc" Each)
        (piece "Queen" Neutral)
}
)



(rules
(meta (swap))
(start (place Random {"Disc1" "Disc2" "Queen0"}))
        (play
            (move Add (to (sites Empty))
                (then
                    (add (piece (id "Disc" Next))        // assumes both players use Disc
                        (to
                            (intersection
                                (expand (sites Occupied by:Next) Orthogonal)
                                (sites Empty)
                            )
                        )
                    )
                )
            )
        )

(end (if (no Moves Next)(byScore {(score P1 (count Pieces P1)) (score P2 (count Pieces P2))})))))


    //------------------------------------------------------------------------------


(option "Board Size" <Board> args:{ <size> }
    {
    (item "3"    <3>  "Played on a size 3 board.") 
    (item "4"    <4>  "Played on a size 4 board.") 
    (item "5"    <5>  "Played on a size 5 board.") 
    (item "6"    <6>  "Played on a size 6 board.") 
    (item "7"    <7>  "Played on a size 7 board.") 
    (item "8"    <8>  "Played on a size 8 board.") 
    (item "9"    <9>  "Played on a size 9 board.") 
    (item "10"  <10>  "Played on a size 10 board.") 
    (item "11"  <11>  "Played on a size 11 board.") 
    (item "12"  <12>  "Played on a size 12 board.") 
    (item "13"  <13>  "Played on a size 13 board.") 
    (item "14"  <14>  "Played on a size 14 board.") 
    (item "15"  <15>  "Played on a size 15 board.") 
    (item "16"  <16>  "Played on a size 16 board.") 
    (item "17"  <17>  "Played on a size 17 board.") 
    (item "18"  <18>  "Played on a size 18 board.") 
    (item "19"  <19>  "Played on a size 19 board.")* 
    }
)


    //------------------------------------------------------------------------------

    (metadata

   
   
    (info
        {
        (description "Players steer cellular automata to dominate the board.")
        (rules "Play on an equilateral hexagonal triangle-tessellated grid. The board is seeded randomly with a black stone, a white stone, and a neutral stone. Players take turn seeding new groups. Every placement triggers growth of all enemy groups, where growth is defined as adding a stone to all empty cells adjacent to a group. When the board fills up, the person who has more pieces on the board wins.")
        (source "")
        (version "1.0.3")
        (classification "territory")
        (publisher "Michael Zapawa")
        (credit "Designer: Mihaw Zapawa. Implemented by Alek Erickson")
        (date "2020")
        }
    )
    )


RE: Inkblots - Eric Piette - 08-15-2020

Hi,

Thanks for submitted that game :)
I just try it, it works fine.
We will add it for the next release like we did for Trike on the latest version.

Regards,
Eric Piette


RE: Inkblots - AlekErickson - 08-17-2020

Thanks, but I also realized there was a bug here, so before it gets released, I need to fix this bug.
I think I can do it on my own with what I've learned so far, but it will take a little time.
Basically, swapping triggers growth, which was not intended (it creates an imbalance).
So probably the game will need to be broken into phases in this description.