v/examples/snek
Subhomoy Haldar 114a341f5f
rand: simplify rand.PRNG, move to optional types for error handling (#13570)
2022-02-23 12:36:14 +02:00
..
README.md
index.html
snek.js.v rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
snek.v rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00

README.md

snek

Snake game implemented using gg module.

Compiling & running

Compiling to binary

v -prod examples/snek/snek.v
./examples/snek/snek # run snek game!

Compiling to JS

v -b js_browser examples/snek/snek.js.v

And then open examples/snek/index.html in your favourite browser.