Coder Social home page Coder Social logo

ayushii12 / tictactoe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 561 KB

This repository contains Tic-Tac-Toe game that offers two options: 1) Human Vs Human 2) Human Vs Computer. The computer player uses the Minimax and Negamax algorithms to make its moves.

CSS 13.91% JavaScript 52.87% HTML 33.22%
minimax-algorithm negamax-algorithm two-player-game

tictactoe's People

Contributors

abdaahads avatar ayushii12 avatar

Watchers

 avatar

Forkers

abdaahads

tictactoe's Issues

incorrect image references

The images that are referenced in the file are in the Images directory. However, they haven't been linked properly

I have highlighted the area where I have observed this issue in these lines

TicTacToe/index.html

Lines 50 to 82 in 0417cba

<div class="col-6">
<img src="img.png" width="350" height="350" style="margin-top: 100px; margin-left: 50px;">
</div>
</div>
<h1 style="text-align: center; margin-top: 150px; font-family: 'Ranchers', cursive; font-size: 3rem;" id="a2">Select Players</h1>
<div class="row" style="margin-top: 40px;">
<div class="col-4">
<div class="card text-center" style="width: 18rem; margin:auto">
<img src="human.png" class="card-img-top" height="200" width="100px">
<div class="card-body">
<h5 class="card-title" style="font-family: 'Baloo Da 2', cursive; font-size: 1.4rem;">Human Vs Human</h5>
<a href="board1.html" class="btn b1" style="font-family: 'Ranchers', cursive; font-size: 1.3rem;">Play</a>
</div>
</div>
</div>
<div class="col-4">
<div class="card text-center" style="width: 18rem; margin:auto">
<img src="hvr.png" class="card-img-top" height="200" width="200">
<div class="card-body">
<h5 class="card-title" style="font-family: 'Baloo Da 2', cursive; font-size: 1.4rem;">Human Vs AI - Minimax </h5>
<a href="board2.html" class="btn b1" style="font-family: 'Ranchers', cursive; font-size: 1.3rem">Play</a>
</div>
</div>
</div>
<div class="col-4">
<div class="card text-center" style="width: 18rem; margin:auto">
<img src="Robot2.png" class="card-img-top" height="200" width="200">
<div class="card-body">
<h5 class="card-title" style="font-family: 'Baloo Da 2', cursive; font-size: 1.4rem;">Human Vs AI - Negamax </h5>
<a href="board3.html" class="btn b1" style="font-family: 'Ranchers', cursive; font-size: 1.3rem">Play</a>
</div>
</div>
</div>

Please refer to this snapshot
Screenshot 2023-06-12 at 3 45 43 PM

I think you would have to refactor the images' srcs' to allow them to be displayed.

Game Boards not configured

The game board doesn't show the set images nor allows for any functionality:
Please refer to the snapshots below:

Screenshot 2023-06-16 at 10 36 39 AM Screenshot 2023-06-16 at 10 36 13 AM Screenshot 2023-06-16 at 10 36 02 AM

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.