C#: Guess The Word Game

Workshop Resources

Welcome

The goal of today’s activity is to learn C# skills and incorporate your new-found knowledge to create a Guess The Word game!

Starting Up

The goal of today’s activity is to learn C# skills and incorporate your new-found knowledge to create a Guess The Word game! Let’s get the game set up.

Today you will be using Replit. Before starting, you will need to sign up for a Replit account, if you do not yet have one.

Click the button below to sign up for a Replit account - you will need an email account in order to sign up. If you already have a Replit account, you can login to your account using the below button as well.

Sign up for Replit

Replit sign up form

Next, launch the Replit console we will use today by clicking the below button. You should see the screen below.

Launch Replit

The starting screen of a repl

We will now fork the Repl, which simply means to make a copy of the program, so that we can make our own changes to it. Click on the “Fork Repl” button on the top right, and then the “Fork Repl” button.

Forking a repl to make a copy of the program

After forking the Replit, you will see a window similar to the one below:

Replit window

We will ignore some of the details on this screen, but we will go over some of the basics that show up. The main.cs file contains code, or instructions for the computer to run. By pressing the run button, you tell the computer to perform the instructions in the code. Any results from running the code will be displayed on the right side, called the console.

If you press run now, you will see that nothing happens! Your job is to help Nuvi complete the code for this game!

Any activities under the Activity sections will be done in this browser tab. You will do these activities on your own, but help is available when you are stuck.

Table of Contents

Table of Contents