Crates.io | rock-paper-scissor |
lib.rs | rock-paper-scissor |
version | 0.1.1 |
source | src |
created_at | 2022-10-14 10:03:21.702459 |
updated_at | 2022-12-14 14:56:20.935643 |
description | Rock Paper Scissor game |
homepage | |
repository | https://github.com/chrys-elrak/rock-paper-scissor |
max_upload_size | |
id | 688089 |
size | 85,576 |
This is a simple game on terminal made with Rust.
To install this on your computer, You will need Rust installed in your computer.
Then you can build with cargo build release
.
Then go to ./target/release
and add this to you PATH.
Now you can use rock-paper-scissor
commande on you terminal. Have fun an enjoy ;)
Fork the repository and make your change. Satisfy ? Create a PR, I'll review you code an merge it as good as well.
To add new language, there is a few step to do:
src/lang/
and create the json file translation.src/models/lang.rs
and add inside the enum AvalaibleLang
the key code for the new language, it must unique and for the
convention, it should be in uppercase.Lang
struct, in the new
function you must provide the json file.main
the ability to choose this language.Note:
For adding new text in translation file, the key must be in english format and uppercase.
After that, you must insert into Lang
struct the key with String
type for the value.
Copyright 2022 - Chrys Rakotonimanana