For this project, I built a javascript word guessing game called snowman, that you can play in the terminal!
Sarah's Snowman Game Trello board link
- Git clone this repo
- Open up the code in VSCode or your choice of IDE
- Run npm install to install dependencies that this project uses
- Run node snowman.js
- Play!
const leaveGame = () => {
console.log(chalk.whiteBright.bold("........................................................."));
if (readlineSync.keyInYNStrict("Do you really want to exit the Snowman word guessing game?")
){
console.log(chalk.yellowBright.bold("👋 Thank you for stopping by the Snowman Word Guessing Game! 👋 "));
process.exit();
} else {
(obs.guessedLetters.length = 0),
(obs.guessCount = 0),
(obs.guessesLeft = 6);
startGame();
}
};