Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contest Logic #29

Merged
merged 146 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
3316bb7
working on contest leaderboard
jaredcosulich Jun 14, 2023
07fcf00
more contest changes
jaredcosulich Jun 14, 2023
07ab35a
more contest tweaks
jaredcosulich Jun 14, 2023
6764a02
more contest tweaks
jaredcosulich Jun 14, 2023
a7920d0
working on contest get started message
jaredcosulich Jun 14, 2023
7d550f5
Merge branch 'main' of https://github.com/EthosWallet/Sui8192 into jc…
jaredcosulich Jun 14, 2023
fd81e99
tweaking sui 8192 copy
jaredcosulich Jun 14, 2023
37cba6f
working on contest logic
jaredcosulich Jun 14, 2023
daaebd6
contest congrats message
jaredcosulich Jun 14, 2023
383707a
contest start message
jaredcosulich Jun 14, 2023
7b93128
tweaking rules and styles
jaredcosulich Jun 14, 2023
6d4314e
mobile improvements
jaredcosulich Jun 14, 2023
da2aee5
email verification
jaredcosulich Jun 15, 2023
397226d
ignore verification message
jaredcosulich Jun 15, 2023
93ad2cf
working on leaderboard from api
jaredcosulich Jun 15, 2023
6486f81
style tweaks
jaredcosulich Jun 15, 2023
abb8b96
style tweaks
jaredcosulich Jun 15, 2023
2498068
style tweaks
jaredcosulich Jun 15, 2023
b211990
contest banner
jaredcosulich Jun 15, 2023
c2252d4
background images for banner and style tweaks
jaredcosulich Jun 15, 2023
5f1a819
fixing button
jaredcosulich Jun 15, 2023
6683d1a
Merge branch 'jc-contest' of https://github.com/EthosWallet/Sui8192 i…
jaredcosulich Jun 15, 2023
51c1315
fixing switching leaderboard issue
jaredcosulich Jun 15, 2023
7ca0cfd
more tweaks
jaredcosulich Jun 15, 2023
7adc22c
more tweaks
jaredcosulich Jun 15, 2023
1e695d1
use contest leaders
jaredcosulich Jun 15, 2023
47ada83
working on countdown
jaredcosulich Jun 16, 2023
a3952c4
working on countdown
jaredcosulich Jun 16, 2023
7989328
adjusting times for start and end of contest
jaredcosulich Jun 16, 2023
2761475
pending contest state
jaredcosulich Jun 16, 2023
b2bedf0
various tweaks
jaredcosulich Jun 16, 2023
3021723
more responsive design
jaredcosulich Jun 16, 2023
fd32607
switch to mainnet
jaredcosulich Jun 16, 2023
1941072
Merge pull request #19 from EthosWallet/jc-contest-leaderboard
jaredcosulich Jun 16, 2023
6f5f371
tweaking css
jaredcosulich Jun 16, 2023
0dcd432
trying to get build working properly
jaredcosulich Jun 16, 2023
6db48b9
new leaderboard id
jaredcosulich Jun 16, 2023
14460b7
tweaking address bar
jaredcosulich Jun 16, 2023
20e2d27
go to leaderboard page if no games found
jaredcosulich Jun 16, 2023
a2b1350
default to normal leaderboard mode
jaredcosulich Jun 16, 2023
3b8b3c2
load contest page if contest has started and you don't yet have conte…
jaredcosulich Jun 16, 2023
8c5d75e
switch to private rpc
jaredcosulich Jun 17, 2023
95b8fbc
switch to public rpc
jaredcosulich Jun 17, 2023
04736ed
switch to public rpc
jaredcosulich Jun 17, 2023
ef1f210
switch to private rpc
jaredcosulich Jun 17, 2023
9b94452
fixing typos
jaredcosulich Jun 17, 2023
016dd66
fixing error message
jaredcosulich Jun 17, 2023
2e6e536
tweaking copy
jaredcosulich Jun 17, 2023
7777425
working on leaderboard tweaks
jaredcosulich Jun 17, 2023
9639b8d
fixing typo
jaredcosulich Jun 18, 2023
842c7e0
fixing typo
jaredcosulich Jun 18, 2023
474297a
get all leaders and cache them
jaredcosulich Jun 19, 2023
72e3202
load more games
jaredcosulich Jun 19, 2023
424648f
switching to contest details
jaredcosulich Jun 20, 2023
a53585f
Merge pull request #20 from EthosWallet/jc-leaderboard-test
jaredcosulich Jun 20, 2023
90fcc08
fixing styling issue
jaredcosulich Jun 20, 2023
2b38819
fixing countdown
jaredcosulich Jun 20, 2023
e9b8130
don't show play first game button if you've already played a game
jaredcosulich Jun 20, 2023
9490542
only show games started after contest started
jaredcosulich Jun 20, 2023
0416e08
fixing bug with topTile sorting
jaredcosulich Jun 20, 2023
7cceb90
fixing leaderboard button at game over
jaredcosulich Jun 20, 2023
66c10e0
after contest logic
jaredcosulich Jun 21, 2023
e5d4f30
hide double button
jaredcosulich Jun 21, 2023
603d8b1
track contest countdown even when not on contest leaderboard
jaredcosulich Jun 22, 2023
75eddbd
add logo
jaredcosulich Jun 22, 2023
8cef482
post contest landing page tweaks
jaredcosulich Jun 23, 2023
64cb968
improving end game state
jaredcosulich Jun 27, 2023
4185587
fixing all time leaderboard
jaredcosulich Jun 27, 2023
e072a1a
display leaderboard by default
jaredcosulich Jul 6, 2023
c8e1365
move summer contest button to bottom of page
jaredcosulich Jul 6, 2023
91065a3
fixing position of transactions
jaredcosulich Jul 6, 2023
9dc1f6c
reduce number of network calls
jaredcosulich Jul 7, 2023
6476a53
abort on invalid move
jaredcosulich Jul 8, 2023
b5f7f43
using invalid move contract
jaredcosulich Jul 8, 2023
543fe32
move protection
jaredcosulich Jul 8, 2023
f45d5d6
remove console.log
jaredcosulich Jul 8, 2023
7611cdd
minor tweaks, testnet contract
jaredcosulich Jul 8, 2023
ef0f3d5
Merge pull request #21 from EthosWallet/jc-invalid-move
jaredcosulich Jul 8, 2023
b7b7f81
accept wasd to make moves
jaredcosulich Jul 9, 2023
8bc375a
better erros for new game'
jaredcosulich Jul 9, 2023
465d7cb
updating ethos connect, improving loading
jaredcosulich Jul 10, 2023
a034279
don't show the congrats popup as often
jaredcosulich Jul 10, 2023
c0d2a46
improving game loading
jaredcosulich Jul 11, 2023
ea468e4
show last move on game over
jaredcosulich Jul 12, 2023
7c90862
fixing pause styles
jaredcosulich Jul 12, 2023
5273e08
only load game not balance
jaredcosulich Jul 12, 2023
af0c61d
revert game loading changes
jaredcosulich Jul 13, 2023
b4d3fea
load all games
jaredcosulich Jul 13, 2023
28ada97
fix
jaredcosulich Jul 13, 2023
75f2469
use official ethos-connect
jaredcosulich Jul 13, 2023
a5b26d7
improving mobile design
jaredcosulich Jul 19, 2023
2eb2082
more mobile responsive tweaks
jaredcosulich Jul 19, 2023
2f95a55
switching to new proxy
jaredcosulich Jul 21, 2023
f78443e
turn off polling
jaredcosulich Jul 23, 2023
a1f21ba
working on new functions
jaredcosulich Jul 25, 2023
c33c60d
working on selecting games
jaredcosulich Jul 25, 2023
f122f1a
select games
jaredcosulich Jul 25, 2023
43aaeee
burn games
jaredcosulich Jul 25, 2023
5bdef89
fix and burn
jaredcosulich Jul 25, 2023
b6d26c1
burn and fix functions working against new contract address
jaredcosulich Jul 26, 2023
6e60eb2
Merge pull request #25 from EthosWallet/jc-game-board-functions
jaredcosulich Jul 26, 2023
8370d50
proper Move.toml
jaredcosulich Jul 26, 2023
2c0e83e
working on daily contest
jaredcosulich Jul 26, 2023
2174c54
clicking on days to change leaderboard
jaredcosulich Jul 26, 2023
7146c27
working on daily contest
jaredcosulich Jul 26, 2023
ef3259a
working on switching leaderboards
jaredcosulich Jul 27, 2023
151f8ec
select today's leaderboard
jaredcosulich Jul 27, 2023
174677e
hide no games message if there are games
jaredcosulich Jul 27, 2023
5ea8679
working on countdown
jaredcosulich Jul 27, 2023
40258be
more logic for switching between games
jaredcosulich Jul 27, 2023
d643c87
working on leaderboard
jaredcosulich Jul 30, 2023
b72944d
select all games link
jaredcosulich Jul 30, 2023
40ec94b
tweak color of select all games link
jaredcosulich Jul 30, 2023
dc3e064
devnet contract
jaredcosulich Jul 30, 2023
05178b0
merge
jaredcosulich Jul 31, 2023
aef5a32
debugging leaderboard switching
jaredcosulich Jul 31, 2023
9b6708a
message about one leaderboard game per address
jaredcosulich Aug 1, 2023
ab6bf19
fixing bug with changing leaderboard
jaredcosulich Aug 1, 2023
249a3c7
daily contest rewards contract
jaredcosulich Aug 5, 2023
5066c14
show message about game rewards
jaredcosulich Aug 7, 2023
e22ea3f
tweaking copy
jaredcosulich Aug 7, 2023
69e7b65
Merge branch 'main' of https://github.com/EthosWallet/Sui8192 into jc…
jaredcosulich Aug 7, 2023
bebfc54
terms and conditions for contests
jaredcosulich Aug 7, 2023
1e3fc3a
Merge branch 'jc-contest' of https://github.com/EthosWallet/Sui8192 i…
jaredcosulich Aug 7, 2023
46955bb
Typo and formatting
adamwade2384 Aug 7, 2023
da9ef4f
tweaking copy
jaredcosulich Aug 7, 2023
8aa775b
Merge branch 'jc-daily-contest' of https://github.com/EthosWallet/Sui…
jaredcosulich Aug 7, 2023
435a8a9
tweaking copy
jaredcosulich Aug 7, 2023
3cb8f06
Merge pull request #26 from EthosWallet/jc-daily-contest
jaredcosulich Aug 8, 2023
7e59aab
tweaking copy
jaredcosulich Aug 9, 2023
581907c
link to faq
jaredcosulich Aug 10, 2023
50d9760
fixing typo
jaredcosulich Aug 10, 2023
b20e7e3
yarn upgrade
juzybits Aug 22, 2023
2f3ee40
yarn add @polymedia/[email protected]
juzybits Aug 22, 2023
3e045ce
remove whitespace from game.js and leaderboard.js
juzybits Aug 23, 2023
774ba2a
move RPC urls to constants.js
juzybits Aug 23, 2023
58f11c9
load polymedia profiles and show username in leaderboard
juzybits Aug 22, 2023
1bbb05d
generate build/index.js
juzybits Aug 24, 2023
a808b3d
Merge pull request #27 from juzybits/polymedia-leaderboard
jaredcosulich Sep 6, 2023
39a2d94
paused status for daily competition
jaredcosulich Sep 6, 2023
7a6b29e
Merge branch 'jc-contest' of https://github.com/EthosWallet/Sui8192 i…
jaredcosulich Sep 6, 2023
9fab0d0
fix errors
jaredcosulich Sep 7, 2023
f9f5e25
hide pause messages on previous days
jaredcosulich Sep 7, 2023
745bed8
remove no contest message on live leaderboard
jaredcosulich Sep 10, 2023
53ce625
upgrading mysten packages
jaredcosulich Sep 14, 2023
61e895c
built
jaredcosulich Sep 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 8192_background_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 8192_background_image_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 8192_background_image_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 8192_background_image_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Sui 8192
# SUI 8192

A fully on-chain, extra challenging version of the popular 2048 game. Built on [Sui](https://sui.io) by [Ethos](https://ethoswallet.xyz).

You can play Sui 8192 at [https://ethoswallet.github.io/Sui8192](https://ethoswallet.github.io/Sui8192)
You can play SUI 8192 at [https://ethoswallet.github.io/Sui8192](https://ethoswallet.github.io/Sui8192)

Sui 8192 consists of a smart contract that allows the player to mint a game that is playable on chain.
SUI 8192 consists of a smart contract that allows the player to mint a game that is playable on chain.

The front-end submits transaction to the Sui blockchain that calculates the next state of the game board. That next state is returned to the front end to display the next state. Most of the logic in the front-end involves diffing and animating the game board states to create an interesting and enjoyable user experience.

Expand All @@ -14,7 +14,7 @@ This project is built on the [Sui blockchain](https://sui.io), which provides th

## Ethos

This project uses the [Ethos APIs](https://ethoswallet.xyz/developers) to make the Sui 8192 game accessible to people who do not yet have a web3 wallet. It allows them to start playing the game right away without having to figure out a wallet first.
This project uses the [Ethos APIs](https://ethoswallet.xyz/developers) to make the SUI 8192 game accessible to people who do not yet have a web3 wallet. It allows them to start playing the game right away without having to figure out a wallet first.

As far as the game is concerned every player has a wallet because the [Ethos APIs](https://ethoswallet.xyz/developers) provide a unified interface for both players with and without wallets.

Expand All @@ -28,7 +28,7 @@ Each of these can be found by searching in `js/game.js`

## The Smart Contract

The Sui 8192 smart contract is written Sui Move for deployment on the Sui blockchain. It consists of three parts:
The SUI 8192 smart contract is written Sui Move for deployment on the Sui blockchain. It consists of three parts:

1. **Game:** Primarily entry functions for making moves and recording the overall game state.

Expand Down
Loading