GithubHelp home page GithubHelp logo

altunenes / rusty_spelling Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 1.79 MB

English spelling training app

License: MIT License

Rust 100.00%
education english-learning rust rust-programming spelling grammar ielts cli command-line-interface

rusty_spelling's Introduction

rusty_spelling

Rust CodeFactor rustyse

๐Ÿฆ€ ๐Ÿฆ€ spelling game in Rust programing language ๐Ÿฆ€ ๐Ÿฆ€

Why & Motivation:

  • My little sister studying English and I wanted to make a simple spelling game for her to practice her English :)

Description:

  • The user enters the words they want to practice.

  • The user tries to write the word they hear in a proper way.

  • Print /exit to exit the program and it prints the score and statistics of the game.

  • You can play with "word_list.txt" file that contains a list of words. You can add your own words to the file.

  • When you run a game it will automatically create a result.json file that contains the statistics of the game so you can track your progress. You can also play with the previous mistakes you made with this JSON file.

  • You can set the pronunciation speed when you run the program. The default is 1.0. You can adjust it from 0.5 to 10. Here is an example:

cargo run -- -s 0.6

Usage/Installation:

1- You need to install rust on your computer. You can install it from here.

2- Click on the green "Code" button (top right of this page) and select "Download ZIP".

3- Extract the downloaded ZIP file to a folder on your computer (e.g., "rusty_spelling"). Open the folder "rusty_spelling".

4- Open the terminal (also known as command prompt or cmd) on your computer. You can simply open it in the folder "rusty_spelling" by right-clicking on the folder and selecting "Open in Terminal".

5- Just write cargo run in the terminal to run the program like this:

cargo run

Thats it! You can start practicing your spelling :)

6- Optionally, you can add the "--release" flag to the command to compile the code in release mode. This will make the executable file smaller and faster.

cargo build --release
  • This will compile code and create an executable in the "target/release/rusty_spelling.exe" directory.

  • You can simply the run executable file by double-clicking on it.

Current look of the game:

8x8

Future, in progress:

  • Working on a web version via wasm. ๐Ÿฆ€
  • ๐Ÿšซ react

Contributing / Questions / Issues:

  • Feel free to open an issue or a pull request if you want to contribute to the project.

rusty_spelling's People

Contributors

altunenes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.