Skip to content

Latest commit

 

History

History

dicedicegoose

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

dicedicegoose

problem

image

image

pressing WASD moves the dice, and the goal is to get the black square (the "goose" ??) on the same square as the dice. the goose moves randomly.

solution

image

we need to make the goose move left always for all 9 turns while we move down

i found this code that moves the goose

image

i just overwrote Math.random with () => 0.3 to make it so the goose always moves left

image