This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Welcome to typeracer!" | |
echo "Type the following text as fast as you can: " | |
echo "" | |
printf "" > random.txt | |
# get random words | |
shuf data.txt -n 10 >> random.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
player_wins=0 | |
ai_wins=0 | |
ties=0 | |
while true; do | |
echo "" | |
echo "Rock, paper, scissors, or quit (r, p, s, q): " | |
read user_input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired by Gonkee's [_Godot 3: How to make a Joystick_](https://www.youtube.com/watch?v=uGyEP2LUFPg) | |
# Version V0.1.1 | |
# Assumptions | |
# Joystick : Node2D -> Joystick.gd | |
# |- Boundary : Sprite | |
# |- Handle : TouchScreenButton | |
# Motivation |