hkan / tic-tac-vue Goto Github PK
View Code? Open in Web Editor NEWOnline tic-tac-toe game built with Vue.js framework.
Home Page: https://tictacvue.herokuapp.com/
Online tic-tac-toe game built with Vue.js framework.
Home Page: https://tictacvue.herokuapp.com/
The ability to play with random players without having to know their username would be nice.
The leaderboard needs to be ordered to make it easier to read.
At first glance, it looks like it should be ordered just by the number of wins, but I don't think that's the correct heuristic to use.
Ideally, it should be sorted by number of wins - number of losses
.
This would, instead of the current leaderboard values which are:
Username | Wins / Losses |
---|---|
darren | 2 / 2 |
abdreaselia | 2 / 2 |
andreaselia | 4 / 4 |
hkan | 0 / 3 |
mdavis1982 | 4 / 1 |
gweg | 2 / 3 |
conceptcore | 3 / 4 |
nns | 2 / 0 |
Wouter | 6 / 0 |
Mamaa | 0 / 6 |
Nsb | 10 / 4 |
Gewoonmemyselfandi | 4 / 10 |
Give the following values:
Username | Wins / Losses |
---|---|
Nsb | 10 / 4 |
Wouter | 6 / 0 |
mdavis1982 | 4 / 1 |
nns | 2 / 0 |
darren | 2 / 2 |
abdreaselia | 2 / 2 |
andreaselia | 4 / 4 |
conceptcore | 3 / 4 |
gweg | 2 / 3 |
hkan | 0 / 3 |
Mamaa | 0 / 6 |
Gewoonmemyselfandi | 4 / 10 |
This seems to give a better reflection who is actually winning.
Additionally, if possible, it should sort by the above, but the secondary sort criteria should be the username so that players with the same score are listed alphabetically.
@andreaselia @hkan What do you guys think?
There is currently an issue with the leaderboard on server side where both the socket and opponent will update the leaderboard.
The demo page cannot be found anymore. You could consider to host it on GitHub Pages.
A leaderboard would be great to store the username along with how many wins and how many losses they have had.
Players should be time limited to play their turn. Timeout should result in a lose.
Now that usernames are implemented, instead of saying It's opponent's turn.
possibly change this to It's <username>'s turn.
?
Could you implement browser notifications? ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.