Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Oct 19, 2019
1 parent 282d8c6 commit fe1956e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# four-in-a-row

A CLI local multiplayer 4 in a row game made in C.

## How to play

Go to the [releases](https://github.com/diogotcorreia/four-in-a-row-c/releases) tab and download the latest version of the game.

If you're using Windows, download and run `four-in-a-row.exe`.
For Linux/MacOS, download and run `four-in-a-row.out`.
7 changes: 3 additions & 4 deletions four-in-a-row.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// C-based Tic-Tac-Toe game by Diogo Correia and João Joaquim
// C-based Four in a Row game by Diogo Correia

// Libraries
#include <stdio.h>
Expand Down Expand Up @@ -56,7 +56,7 @@ int main()
// Prints the instructions to the console.
void rules_instructions()
{
printf("\n Welcome to this C-based 4-in-a-row game by Diogo Correia and João Joaquim!\n");
printf("\n Welcome to this C-based 4-in-a-row game by Diogo Correia!\n");
printf("\n In order to win the game, you must have four of your characters aligned, either vertically, horizontally or diagonally.\n");
printf("\n Player 1 plays with '%c' and Player 2 with '%c'.\n", PLAYER1, PLAYER2);
printf("\n To start playing, choose the number correspondent to the column you wish to occupy, and press ENTER.\n");
Expand Down Expand Up @@ -153,8 +153,7 @@ void execute_play()
// Checks if there is a winner. Does not check ties.
char verify_winner()
{
// TODO
int i, j, accumolated;
int i, j;
for (i = 0; i < BOARD_COLUMNS; i++)
// Same here
for (j = 0; j < BOARD_ROWS; j++)
Expand Down

0 comments on commit fe1956e

Please sign in to comment.