Skip to content

Instantly share code, notes, and snippets.

View pixendrit's full-sized avatar

pixendrit

View GitHub Profile
@pixendrit
pixendrit / css-tic-tac-toe-now-with-ai.markdown
Created July 9, 2020 02:41
CSS Tic-Tac-Toe... now with AI!

CSS Tic-Tac-Toe... now with AI!

Tic-Tac-Toe game developed using only HTML and CSS, without any JavaScript.

This is an extension of the previous version (linked below). On this one, instead of being 2 human players, there's a player going against the computer.

The computer will play randomly in Beginner mode, but in Advanced mode, it will load scenarios, and "play" to win.

Special states have been added in order to create some "artificial intelligence", so the machine can cover certain scenarios in "Advanced mode" (although I may have missed some... leaving the player with some opportunity to win :P)

@pixendrit
pixendrit / index.html
Created July 9, 2020 00:07
Pulsing (he)art
<div class="heart"></div>