hexagon logo

Gaming in PC-DMIS

A rather cursed side project of mine, building games in PC-DMIS that only use PC-DMIS tools, so no scripting to do workarounds. Currently Ive got TicTacToe working for 2 players, and the ancient checker game of Tablut as well working for 2 players. My current method involves using a 2d array to fill game pieces on a board, and looping generics for the display. Its very silly, as every turn needs the loop to complete to redraw the game board, but it does work! Connect-4 was suggested, so I might try that one next.

Parents
  • make a Rubic's Cube PH9/PH10 (I did).

    ITEM:HEAD-PH9-PH10T-RUBIK-SOLVED ARM
    comment lines of faces of block
    color 0 0 0
    comment front face lines
    line -10 -30 0 -10 -30 -60 1
    line 10 -30 0 10 -30 -60 1
    line -30 -30 -20 30 -30 -20 1
    line -30 -30 -40 30 -30 -40 1
    comment left face line
    line -30 -10 0 -30 -10 -60 1
    line -30 10 0 -30 10 -60 1
    line -30 -30 -20 -30 30 -20 1
    line -30 -30 -40 -30 30 -40 1
    comment right face line
    line 30 -10 0 30 -10 -60 1
    line 30 10 0 30 10 -60 1
    line 30 -30 -20 30 30 -20 1
    line 30 -30 -40 30 30 -40 1
    comment rear face lines
    line -10 30 0 -10 30 -60 1
    line 10 30 0 10 30 -60 1
    line -30 30 -20 30 30 -20 1
    line -30 30 -40 30 30 -40 1
    comment top face line
    line -30 -10 0 30 -10 0 1
    line -30 10 0 30 10 0 1
    line -10 -30 0 -10 30 0 1
    line 10 -30 0 10 30 0 1
    comment bottom face line
    line -30 -10 -60 30 -10 -60 1
    line -30 10 -60 30 10 -60 1
    line -10 -30 -60 -10 30 -60 1
    line 10 -30 -60 10 30 -60 1
    comment THE FOLLOWING 6 face CREATE THE BOX OF THE PH9
    comment top face
    color 0 0 255
    face 4 -30 30 0 30 30 0 30 -30 0 -30 -30 0
    comment right face
    color 255 0 0
    face 4 30 30 0 30 30 -60 30 -30 -60 30 -30 0
    comment front face
    color 255 255 0
    face 4 -30 -30 0 30 -30 0 30 -30 -60 -30 -30 -60
    comment left face
    color 0 255 0
    face 4 -30 30 0 -30 -30 0 -30 -30 -60 -30 30 -60
    comment bottom face
    color 255 255 255
    face 4 30 30 -60 -30 30 -60 -30 -30 -60 30 -30 -60
    comment rear face
    color 255 100 0
    face 4 -30 30 0 -30 30 -60 30 30 -60 30 30 0
    comment THE FOLLOWING CREATE THE LED
    ring 0 -30 -30 0 1 0 20 4
    ribcount 10
    color 255 0 0
    cutsphere 0 -30 -30 0 1 0 8 0 -10000
    comment THE FOLLOWING STARTS THE ROTATING SPHERE
    autojoint 0 0 -77 0 0 1 0 7.5 -180 180 b angle
    color 30 30 30
    ribcount 10
    cutsphere 0 0 0 0 0 1 50 18 -10000
    autojoint 0 0 0 -1 0 0 0 7.5 0 105 a angle
    color 142 142 142
    ribcount 10
    cylinder -22 0 0 -25 0 0 13
    connect -25 0 0 1 0 0 M8

Reply
  • make a Rubic's Cube PH9/PH10 (I did).

    ITEM:HEAD-PH9-PH10T-RUBIK-SOLVED ARM
    comment lines of faces of block
    color 0 0 0
    comment front face lines
    line -10 -30 0 -10 -30 -60 1
    line 10 -30 0 10 -30 -60 1
    line -30 -30 -20 30 -30 -20 1
    line -30 -30 -40 30 -30 -40 1
    comment left face line
    line -30 -10 0 -30 -10 -60 1
    line -30 10 0 -30 10 -60 1
    line -30 -30 -20 -30 30 -20 1
    line -30 -30 -40 -30 30 -40 1
    comment right face line
    line 30 -10 0 30 -10 -60 1
    line 30 10 0 30 10 -60 1
    line 30 -30 -20 30 30 -20 1
    line 30 -30 -40 30 30 -40 1
    comment rear face lines
    line -10 30 0 -10 30 -60 1
    line 10 30 0 10 30 -60 1
    line -30 30 -20 30 30 -20 1
    line -30 30 -40 30 30 -40 1
    comment top face line
    line -30 -10 0 30 -10 0 1
    line -30 10 0 30 10 0 1
    line -10 -30 0 -10 30 0 1
    line 10 -30 0 10 30 0 1
    comment bottom face line
    line -30 -10 -60 30 -10 -60 1
    line -30 10 -60 30 10 -60 1
    line -10 -30 -60 -10 30 -60 1
    line 10 -30 -60 10 30 -60 1
    comment THE FOLLOWING 6 face CREATE THE BOX OF THE PH9
    comment top face
    color 0 0 255
    face 4 -30 30 0 30 30 0 30 -30 0 -30 -30 0
    comment right face
    color 255 0 0
    face 4 30 30 0 30 30 -60 30 -30 -60 30 -30 0
    comment front face
    color 255 255 0
    face 4 -30 -30 0 30 -30 0 30 -30 -60 -30 -30 -60
    comment left face
    color 0 255 0
    face 4 -30 30 0 -30 -30 0 -30 -30 -60 -30 30 -60
    comment bottom face
    color 255 255 255
    face 4 30 30 -60 -30 30 -60 -30 -30 -60 30 -30 -60
    comment rear face
    color 255 100 0
    face 4 -30 30 0 -30 30 -60 30 30 -60 30 30 0
    comment THE FOLLOWING CREATE THE LED
    ring 0 -30 -30 0 1 0 20 4
    ribcount 10
    color 255 0 0
    cutsphere 0 -30 -30 0 1 0 8 0 -10000
    comment THE FOLLOWING STARTS THE ROTATING SPHERE
    autojoint 0 0 -77 0 0 1 0 7.5 -180 180 b angle
    color 30 30 30
    ribcount 10
    cutsphere 0 0 0 0 0 1 50 18 -10000
    autojoint 0 0 0 -1 0 0 0 7.5 0 105 a angle
    color 142 142 142
    ribcount 10
    cylinder -22 0 0 -25 0 0 13
    connect -25 0 0 1 0 0 M8

Children
No Data