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

A Wordle-like score sharing #35

Closed
DenisovichDev opened this issue Jul 14, 2022 · 15 comments
Closed

A Wordle-like score sharing #35

DenisovichDev opened this issue Jul 14, 2022 · 15 comments
Assignees
Labels
enhancement New feature or request

Comments

@DenisovichDev
Copy link
Member

@shiffman mentioned this in today's stream. I wonder how this could be implemented.

@alin256
Copy link
Collaborator

alin256 commented Jul 14, 2022

I have an idea how to make score sharing (I have implemented it for another project) but I did not play wordless so I do not know what kind of sharing is used there.

@alin256 alin256 added the enhancement New feature or request label Jul 14, 2022
@DenisovichDev
Copy link
Member Author

Basically it copies your scores in your clipboard to share with a friend, in a creative way. Check out how Wordle does it, maybe we can do something similar

@alin256 alin256 self-assigned this Jul 14, 2022
@alin256
Copy link
Collaborator

alin256 commented Jul 15, 2022

@DenisovichDev do you mean something like that:

Wordle 390 6/6

⬛⬛🟨⬛⬛
⬛🟨🟨⬛⬛
⬛🟨⬛⬛⬛
⬛⬛🟨🟨⬛
🟨🟨⬛⬛⬛
🟩🟩🟩🟩🟩

@alin256 alin256 removed their assignment Jul 15, 2022
@DenisovichDev
Copy link
Member Author

Yes something based on this. Do you have any ideas?

@DenisovichDev
Copy link
Member Author

The idea is that there would be link to the game with it as well, so that people can challenge their friends to play

@alin256
Copy link
Collaborator

alin256 commented Jul 15, 2022

I was thinking to share action sequences as one idea. Like

  • start ➡️
  • drill one pipe did not find emoji
  • stuck ???
  • pull back ↩️ followed by a line break
  • side track up ⤴️ or down ⤵️
  • win 🎯 or 💰
  • lose 💸 ??? 🥉🔜???

@alin256
Copy link
Collaborator

alin256 commented Jul 15, 2022

The idea is that there would be link to the game with it as well, so that people can challenge their friends to play

I know how to make pre-filled copy, twitter, linkedin, etc posts with a button.

@alin256
Copy link
Collaborator

alin256 commented Jul 15, 2022

  • drill one pipe did not find emoji
  • stuck ???

what if we use dashes with a * (best middle of line *) in the end
like:

➡️——-*↩️
⤵️——————-*🎯

@DenisovichDev
Copy link
Member Author

That looks like a good idea! I'll try to make a window, see how it works out. A bit busy this week but I'll try

@alin256
Copy link
Collaborator

alin256 commented Jul 23, 2022

I implemented the loading of replays but only limited to steering (no pullbacks).

Currently working to display scores right.

@alin256 alin256 self-assigned this Jul 23, 2022
@alin256
Copy link
Collaborator

alin256 commented Jul 23, 2022

I implemented the basic replays that show the last well but the correct sharable score.

Just press Start:

https://al-digital.no/Directional-Boring/?seed=767646&sol=//////////8PAAAAAAAAAAAAAAAAAAAAAAAAAA==&sup=AS0DAQI=

@DenisovichDev
Copy link
Member Author

@alin256 Okay that is super cool! I wasn't thinking about replays at all, but this is really great

@alin256
Copy link
Collaborator

alin256 commented Jul 24, 2022

@DenisovichDev @shiffman I managed a shorter URL and all actions.

https://al-digital.no/Directional-Boring/?seed=541856&s4=/qbQBfz85E4Pavz8vHa05uQ=

The buttons are not blocked from a user during a replay, though.
The interface now lacks a "retry" button.

@alin256
Copy link
Collaborator

alin256 commented Aug 1, 2022

I have played with the interface for the last week. I think we will be better off with less freedom and suggest replacing sliders with a few pre-sets.

The reason is that the user should not change the controls during a single game. In that respect, reloading, the interface with a button or a link, seems more intuitive than a slider.

With the simulation parameters set consistently, the replay functionality works for all different settings when specified explicitly in the link.
https://al-digital.no/Directional-Boring/?rnd=3&seed=101244&ropd=2&s4=/rL8/CzmvPL8/NSW0Af8/P5y/Pzwzg==

@DenisovichDev @shiffman should we integrate the updated interface into CodingTrain/Directional-Boring?

Screenshot 2022-08-01 at 09 32 55

@alin256 alin256 mentioned this issue Aug 1, 2022
@DenisovichDev
Copy link
Member Author

I love this!! Amazing work @alin256, I'm totally in favour of merging this. I have some ideas that I wanna try to implement to make it easier for the player to understand the UI, I'll work on it in the next few days.

So I would say you should merge this, I'll fix the CSS and stuff and work on some other UX related stuff.

Also, here's my replay of that level:
https://al-digital.no/Directional-Boring/?rnd=3&seed=101244&ropd=2&s4=/rb8/JD+Lvw81vz8/GT+Bvz8QM7s

alin256 added a commit that referenced this issue Aug 1, 2022
Added share replay functionality and redesigned interface to support the feature

Merging following the review from @DenisovichDev 
#35 (comment)
@alin256 alin256 closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants