DEV Community

zivoxcrooc
zivoxcrooc

Posted on

tic tak toe as a project in a course

Image description
this small code is a task that i had to do for a course that i am taking, it is the first time that i have made a funcional game, i saw it from a youtube tutorial but it has helped me to continue advancing in my course and understand the lenguage more.

Description of the code: in this code, the board has been written,some global variables such a current player, winner and running game, then we have printed each part of the board assingning it a value to later be able to change the appearance of the board by a strikethrough or a cicle, they were created entry declarations to win horizontally, vertically and diagonally, tie declarations were also considereted and when winning and a text is printed as the case may be, in addition to a declaration to change the player and to be able to play with the machine.
this is the link to the site in github for check the code https://github.com/zivoxcrooc/ticktactoe

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️