CodingTrain / Directional-Boring

Horizontal Directional Drilling Simulation
MIT License
44 stars 20 forks source link

A Wordle-like score sharing #35

Closed DenisovichDev closed 1 year ago

DenisovichDev commented 2 years ago

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

alin256 commented 2 years ago

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.

DenisovichDev commented 2 years ago

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 commented 2 years ago

@DenisovichDev do you mean something like that:

Wordle 390 6/6

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

DenisovichDev commented 2 years ago

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

DenisovichDev commented 2 years ago

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 commented 2 years ago

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

alin256 commented 2 years ago

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 commented 2 years ago
  • drill one pipe did not find emoji
  • stuck ???

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

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

DenisovichDev commented 2 years ago

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 commented 2 years ago

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

Currently working to display scores right.

alin256 commented 2 years ago

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 commented 2 years ago

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

alin256 commented 2 years ago

@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 commented 1 year ago

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
DenisovichDev commented 1 year ago

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