Giter Club home page Giter Club logo

ultimate-ttt's People

Contributors

alexmillward avatar aurbano avatar confuddledpenguin avatar dependabot[bot] avatar eugene195 avatar gyorokpeter avatar joffat avatar reddyalready avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ultimate-ttt's Issues

Improvement ideas

Backend

  • Only add players to ranking if they've won at least one game
  • For ranking, display a score as well as the rank, so people can have the same rank.
  • Rank tie break using individual wins/loses
  • Fix the double elimination brackets
  • Click on match to see summary (timings, game statuses, including the full game with all the moves)
  • Show the current game move by move
  • Connect two players that have the same name
  • Stop a match once it reaches a point where one team has already won
  • Add an option to set a flag/flair on a player (to indicate the city/office... ) and add an option to enable/disable them in the tournament

Frontend

  • Show the current game move by move
  • Allow sorting the players that are going to compete
  • Add an option to set a flag/flair on a player (to indicate the city/office... ) and add an option to enable/disable them in the tournament
  • The UI for a Bracket Match should indicate how "close" two teams are, with a split progress bar that moves toward the left or right, and if it hits the end they won.

Add practice mode

Add a mode that enables players to play vs a random implementation.

Users will use the uabc client with a special flag to indicate that they want to practice only.

Add match info to the protocol

New message proposal:

match {player A token} {player B token}

This will allow UABC to improve the displayed stats, as it will know when matches end.
Although for online play, it would be easier to maintain if the server sent the match stats to UABC directly.

The match message will appear in the log files, and it'll allow the analyse tab in the website to group games by match.

Support 1v1 games

In order to provide a better testing experience, players should be able to play 1v1 against their algorithms, or have one algorithm against another.

In essence we should support:

  • player (manual) vs player (manual)
  • player (manual) vs algorithm
  • algorithm vs algorithm

1v1 Matches will be created from the web UI by sending the appropriate message to the server, who will respond with a token. To make it easier to share, the token should be 3 words (for example) i.e. "kitten sky lamp".

Idea for implementation:

The server could handle each match as a "room" in socket.io, so players connect to that room in order to participate in a match?

The workflow would be:

  1. User goes to the UTTT website and clicks on "Create Match".
    • The website sends the request to the server, and receives a token.
    • The website goes into a "Match Created" mode, where it's waiting for players.
  2. User runs uabc with the token from the server, connecting to the match.
    • The website now shows an algorithm connected to the list of available players for this match
    • The user now has the option to start the match, by playing itself against the algorithm.
    • Before starting the match, if another algorithm connects to this match, then both algorithms show up in the list of available players, removing the option of human vs algorithm.
  3. Once there are 2 players connected (either the user & an algorithm, 2 users, or 2 algorithms), the user can click on "Start Match", which will display a UI similar to the Replay one available when uploading logs.
  4. If playing user vs algorithm, the server will initiate a game, request a move from the user socket, which will make it wait for the user to click on a valid cell, then send it to the server, send it to the algorithm... etc.
  5. Whenever a game is done, the web should give the option to "Start a new game", or "Finish"

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.