Coder Social home page Coder Social logo

patanco / tripelino Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 1.87 MB

demo + game (triple chance) for "Kniwwelino" (Luxembourgish micro-controller development platform, see https://www.kniwwelino.lu/)

License: GNU General Public License v3.0

kniwwelinochallenge2018 kniwwelino demo-game fireworks countdown triple-chance

tripelino's Introduction

tripelino

demo + game (triple chance) for "Kniwwelino" (Luxembourgish micro-controller development platform, see https://www.kniwwelino.lu/)

This program has been made for Kniwwelino using exclusively the visual programming tool accessible here: https://code.kniwwelino.lu. Only one Kniwwelino without any extentions is required. This program has been designed end of December 2018 and therefore the theme is New Year's Eve.

Intro

A countdown is shown going from 5 to 0 followed by a small animation of a firework. countdown

After pressing a button, a text is displayed which depends on the current month:

  • December: "Gudde Rutsch! <current year>/<current year+1>"
  • January: "Vill Gleck am Neie Joer <current year>!"
  • other: "Moien! Haut ass den <current date>" message

Game: Triple chance

It is a simplified version of the game "triple chance".

While button B is pressed, 3 Symbols (tree, star, glass) are displayed one after the other very quickly (in order to simulate the turning wheel on a casino machine). As soon as the button is released, the wheel stops at the last symbol shown. This function is repeated 3 times.

triple chance playonce

You win a round if you have 3 times the same symbol. In this case a firework animation is shown. After 10 rounds, the score is displayed and you can start again :)

In theory, you have a chance of 1/9 to win a round (1/3 * 1/3 * 1/3).

Issues

I had one issue with a symbol not being displayed: I discovered it was a problem with the second variable being set. As a work-around, I created one not used variable called bug :). bug

I also discovered the function "button was clicked" did not work as expected for me. I therefore replaced all these functions by a combination of repeat until button x is pressed + repeat while button x is pressed. button_pressed

In action

20181229_114346 (1024x768) 20181229_114401 (1024x768)

kniw_20181231_1 kniw_20181231_2 kniw_20181231_3

tripelino's People

Contributors

patanco avatar

Stargazers

 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.