Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
/ Go Public archive

The game Go as a Python text based game.

Notifications You must be signed in to change notification settings

inesiscosta/Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go

Go is an abstract strategy board game for two players, where the objective is to control more territory than your opponent. This repository contains the code to play Go as a text-based game.

The code is written in Python as part of a project for my Fundamentals of Programming class. The primary goal of this project was to practice using Abstract Data Types. The included .pdf file contains the instructions provided by the teacher, who also supplied the accompanying pytests (both public and private).

How to Play

  1. Setup: Ensure you have Python 3 installed on your system.

  2. Run the Game: Navigate the the root directory of this repository and execute the following command in your terminal:

    $ python PlayGo.py
  3. Game Board: The game board is a 9x9, 13x13, or 19x19 grid. The columns are labeled with letters, and the rows are numbered. Here is an example of a 9x9 grid:

        A B C D E F G H I  
      9 . . . . . . . . .  9  
      8 . . . . . . . . .  8  
      7 . . . . . . . . .  7  
      6 . . . . . . . . .  6  
      5 . . . . . . . . .  5  
      4 . . . X . . . . .  4  
      3 . . O . . . . . .  3  
      2 . . O . . X . . .  2  
      1 . . . . . . . . .  1  
        A B C D E F G H I
  • X represents a black stone.
  • O represents a white stone.
  • . represents an empty intersection.
  1. Placing Stones:
  • Players take turns to place stones on the board.
  • Use coordinates to specify where to place your stone (e.g. D4).
  1. Objective: Capture the opponent's stones by surrounding them.

  2. End Game: The game ends when both players pass their turn consecutively.

Enjoy playing Go!

About

The game Go as a Python text based game.

Topics

Resources

Stars

Watchers

Forks

Languages