Git Product home page Git Product logo

replaceits / kana-totsugeki Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 164 KB

A simple game for learning the Japanese kana!

Home Page: https://www.replaceits.me/kana-totsugeki

License: MIT License

HTML 21.81% JavaScript 52.17% CSS 20.65% Makefile 5.38%
japanese japanese-language hiragana katakana website game web-game language language-learning learning education educational educational-game

kana-totsugeki's Introduction

Kana-Totsugeki

A simple game for learning the Japanese kana!

Currently supports the basic hiragana, katakana, and romaji.

You can choose to pull questions from any of these categories or even change what the game should accept as an answer (for example you can answer each question in only hiragana).

There is a slow mode (7.5 seconds to answer), medium mode (5 seconds to answer), and a fast mode (2.5 seconds to answer).

You can choose between 1 life, 3 lives, or 5 lives.

Each kana you get right will give you 100 points and each you get wrong will take away 100 points (no lower than 0).

At the end of the game (when you run out of lives) you will be shown your final score and the number of kana that you got correct!

Enjoy it live on my website!

Development

Written using jQuery 3.1.1 and SCSS.

Contact

If you find any bugs, typos, improper translations or anything else feel free to contact me on reddit or GitHub, or simply submit a pull request!

To see more of my work check out my website!

kana-totsugeki's People

Contributors

replaceits avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

seigex alic3dev

kana-totsugeki's Issues

Further reduce cookie size

We can even further reduce cookie size by instead of having each variable take up a single byte, we can assign multiple values to one byte.

For example Var1 can be 0-1, Var2 can be 0-2

'0' == (Var1 == false && Var2 == false)
'1' == (Var1 ==  true && Var2 == false)  
'2' == (Var1 == false && Var2 ==  true)  
'3' == (Var1 ==  true && Var2 ==  true)

So we can do a simple check like

if( cookieValue[i] > 2 ){
    Var2 = true;
    cookieValue[i] -= 2;
}
if( cookieValue[i] == 1 ){
    Var1 = true;
}

We can continue this type of pattern to add even more values to a single byte of the cookie, reducing the size and slightly increasing our load speeds.

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.