---
title: "Discussion on \"🦀 Rust Series 02: CLI Game\" | Hashnode"
description: "Discussion on \"🦀 Rust Series 02: CLI Game\". In this blog, we will build a CLI Game, \"Rock-Paper-Scissor\". I have tried to cover basic Rust in this blog through this project. We will also go through so"
url: "https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [🦀 Rust Series 02: CLI Game](https://anamansari062.hashnode.dev/rust-series-02-cli-game?utm_source=hashnode&utm_medium=feed)

In this blog, we will build a CLI Game, "Rock-Paper-Scissor". I have tried to cover basic Rust in this blog through this project. We will also go through so

Feb 8, 2023 · 8 min read · anamansari062.hashnode.dev  
Updated Feb 27, 2023  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#rust-lang](https://hashnode.com/tag/rust-lang)
-   [#rust-solana-web3](https://hashnode.com/tag/rust-solana-web3)
-   [#cli](https://hashnode.com/tag/cli)
-   [#tutorials](https://hashnode.com/tag/tutorials)

## Written by

[Anam Ansari](https://hashnode.com/@anamansari062)

@anamansari062

  
[View profile](https://hashnode.com/@anamansari062)

Android and Rust Dev

## Responses 4

Markdown supported · ⌘↵ to post

[zgd](https://hashnode.com/@zhaoguodong)

[Feb 21, 2025](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/67b8275d9753f7e1a1775ccb)

We're looking for experienced MMO mobile game developers who have successfully developed multiple large-scale multiplayer online role-playing games (MMORPGs) at renowned gaming companies. This is a remote position offering highly competitive salaries with flexible working hours. Candidates can arrange their own schedules, and we're willing to provide an advance deposit upfront. If you meet these criteria and are interested, please contact us directly.

EMail:q791864008q@gmail.com Discord:q791864008q\_gmail\_com Telegram:q791864008q\_gmail\_com

[Shubham Sah](https://hashnode.com/@ishubhamsah)

[Jan 22, 2024](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/65ae1a58360091265775f817)

Amazing

[Karan Pargal](https://hashnode.com/@karanpargal)

[Jul 10, 2023](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/64ac9637395b682e51aba6ba)

In comparing strings, it was working when .trim() was added else it was giving it as false due to a newline character being there in the string

[New Wei](https://hashnode.com/@newwei)

[Jan 21, 2024](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/64ac9637395b682e51aba6ba#reply-65ad4ff337815e4cfdb75dbc)

correct

[William Tinker](https://hashnode.com/@williamtinker)

[Apr 27, 2023](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/644a40215c7f2d85a97f14d0)

Interesting thoughts about Rust. I love this game, and even more I like to read reviews about the best casinos and slots, for example, how [casinohex.org/canada/casinos/luxury-casino](https://casinohex.org/canada/casinos/luxury-casino/) where everything is always detailed and interestingly written.

[Amanda](https://hashnode.com/@scootie)

[Sep 25, 2023](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/644a40215c7f2d85a97f14d0#reply-6511a003354de14664892c5d)

great!

[Wilfred Almeida](https://hashnode.com/@WilfredAlmeida)

[Feb 9, 2023](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/63e52e73db59c3f72b9f2ad4)

I tried putting the menu in a loop.

read\_line() appends to the String choice so the newly given input won't be processed.

To deal with this, call the choice.clear() before calling read\_line() in the loop.

[Anam Ansari](https://hashnode.com/@anamansari062)

[Feb 11, 2023](https://hashnode.com/posts/rust-series-02-cli-game/63e3418f4f69afd2796cf66f/comment/63e52e73db59c3f72b9f2ad4#reply-63e759f0c23c310c9a85f795)

Correct!
