Papel, Gunting, Bato! Using Dart as the programming language, create a classic Filipino game by entering values in the command line.
The program (bot) should ask:
Papel, Gunting, Bato! What's your Pick?
The user inputs a keyword or value:
Bato
The bot picks a random choice then prints the output:
Bot: Gunting - You Win!
Features in this section are advanced, but you'll get plus points for implementing any of these.
The program can accept values of any of the following text cases (UPPERCASE, lowercase, TitleCase)
Bato
gunting
PAPEL
The program prints the results as emoji icons.
:scissors:
✂️
The program can cater three or more rounds and prints the score after the game.
Round 1:
Papel, Gunting, Bato! What's your Pick?
Round 2:
Papel, Gunting, Bato! What's your Pick?
...
You Win! Bot: 1, You: 2
- Create a repository in your GitHub account named
dart-midterm-output
. - Upload your code in that repository using Git or using the live editor in your mobile/tablet device.
- Email your repository link to [email protected], subject: $yourlastname-dart-midterm-output, replace $yourlastname with your own.
- Reuse and building upon ideas or code are major parts of modern software development. As a professional programmer you will never write anything from scratch. This class is structured such that all solutions are public. You are encouraged to learn from the work of your peers. I won't hunt down people who are simply copying-and-pasting solutions, because without challenging themselves, they are simply wasting their time taking this class.
- Making a flow diagram before coding will help you a lot.
- Be creative! You can innovate and formulate better user interactions, solutions or program outputs.