Coder Social home page Coder Social logo

baba_shake's Introduction

A teeny portion of a game that my kids like.
output: colored ascii
code: meh


compile it:
# osx:
go build mix.go
# assuming you already: brew install go --with-cc-common
# then: brew reinstall go --with-cc-common
# windows:
GOOS=windows GOARCH=386 go build -o mix.exe mix.go

run it: ./mix # alernatively ./mix.rb
then press <enter> (or <return>) when it lands on a "green"
the sooner the better, but if you fail to get a 'green'
then suffer for your lack of timing...

:-)

Initially we played like that: aiming to get the most points
(100% for landing on green within the first few rounds)

Then, my son started trying to see who could click the fastest
Playing for the fastest "time" was a lot more fun

And thanks to my son's feedback, I made our new alteration a more natural fit,
I adjusted the code to start on Green

...But, of course, having green up-against the left edge of the screen wasn't good
that made the regular game too easy.

So I made the game loop skip the first few colors, such that the game starts on "green"
..in the middle of the screen
...and only for a few milliseconds

Now having almost worn-out my keyboard
We've come-up with an even better game --almost as fun and less likely to break my keyboard

Rules:
  1) you must land on green or you lose
  2) you must get at least 500ms or you lose
  3) the winner is the one with the lowest time

I started off with 560ms
My son got 503ms
then (after many attempts) I secured my victory (so far) with: 500.0629ms*

(Note: Yes, we're talking milliseconds ...not seconds)

baba_shake's People

Contributors

jayteesf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.