Code Monkey home page Code Monkey logo

tictactoe-rust's Introduction

Tic-Tac-Toe Rust

Thumbnail_GitHub

This repository contains a simple implementation of the classic game "Tic-Tac-Toe" written in Rust. The game is played on a 3x3 board between two players, who take turns marking their symbol ('X' or 'O') on the board. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

Installation

Thumbnail_Readme

Before running this game, make sure you have Rust installed in your system. If not, you can download it from here.

To download the game, clone the repository to your local machine using the following command:

git clone https://github.com/miguelgargallo/tictactoe-rust

Usage

Navigate to the game's directory:

cd tictactoe-rust

Run the game:

cargo run

The game board is a 3x3 grid, represented as follows:

  1 2 3
A . . .
B . . .
C . . .

Each cell in the grid is identified by a combination of a letter (A, B, C) and a number (1, 2, 3). For example, the top left cell is A1, the middle cell is A1, and the middle cell is B2, and so on.

When it's your turn, enter your move in the format A1, B3, C2, etc. The program will prompt you for your input.

Contributing

Thumbnail_Contribution

Feel free to contribute to this project. Any contributions you make are greatly appreciated. Please read the CONTRIBUTING.md for details on the code of conduct and the process for submitting pull requests.

License

Thumbnail_License

Permission is hereby granted, free of charge, to any person obtaining a copy of the Pylar AI software and associated documentation files (the "Software"), to visualize and use the Software solely for educational and informative purposes, subject to the following restrictions and conditions on the PYLAR AI EDUCATIVE ML LICENSE.

tictactoe-rust's People

Contributors

miguelgargallo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.