10409 - Die Game
Solution Description : Ad hoc Die Game At initially value in sides, up=1, down=6, north=2, south=5, west=3, east=4 1.For "north" command a. up side move to north side b. north side move to down side c. down side move to south side d. south side move to up side 2.For "east" command a. up side move to east side b. east side move to down side c. down side move to west side d. west side move to up side 3.For "south" command a. up side move to south side b. south side move to down side c. down side move to north side d. north side move to up side 4.For "west" command a. up side move to west side b. west side move to down side c. down side move to east side d. east side move to up side |
||||||||||