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

Build Tic-tac-toe using HOPR #173

Open
nionis opened this issue Aug 29, 2022 · 40 comments
Open

Build Tic-tac-toe using HOPR #173

nionis opened this issue Aug 29, 2022 · 40 comments
Assignees

Comments

@nionis
Copy link
Contributor

nionis commented Aug 29, 2022

Challenge Description

Build tic-tac-toe using HOPR.

Submission Requirements

  • Source code must be open-sourced and available on GitHub.
  • Submission must be functional and working.
  • Submission must be your own original work or a fork of an existing project which has been substantially changed.
  • When applicable, must follow the HOPR dApp standard.

Developing HOPR

What is HOPR?

Find out more about HOPR at the following links:

This contest is part of The Bounty Program

@thewanderingeditor
Copy link
Contributor

Suggested prize: $200

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 2963.7681 HOPR attached to it as part of the hoprnet fund.

@gitcoinbot
Copy link

gitcoinbot commented Sep 2, 2022

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 264 years, 2 months from now.
Please review their action plans below:

1) charlie85270 has applied to start work (Funders only: approve worker | reject worker).

Hello ! I'm JS developer since 8 years and I'm interested to develop a tic-tac-toe for you !
I seen others projects examples on HOPR (https://github.com/hoprnet/hopr-community/tree/main/projects) and I can develop a tic tac to game !
2) ginanisque has applied to start work (Funders only: approve worker | reject worker).

I like to play tic tac toe to relax and have previously written a tic tac toe browser game. I would love to build one with HOPR. I have had a look at the HOPR dapp standard and I am confident I can build this project to your satisfaction.
3) rohitkumarvarma-369 has been approved to start work.

I've already built a web2 version of tic-tac-toe with two mode, dual player manual version and an AI opponent version based on the Mini-Max algorithm. I will start working to implement the logic on the hopr network and deliver it within 3 days. Hence I request you to accept my proposal for this bounty.
4) vanoob404 has applied to start work (Funders only: approve worker | reject worker).

I want to participate! I will make p2p tic tac toe on hopr!
5) libengd has applied to start work (Funders only: approve worker | reject worker).

I did chat in hopr with my previous app so I have experience in using hopr for communications. Will be happy to work on this one!
6) navaneeth-arch has applied to start work (Funders only: approve worker | reject worker).

hi this is navaneeth , i would like to do this requested job ,would like to know more about the task
7) rysertio has applied to start work (Funders only: approve worker | reject worker).

I would like to make a simple html5 canvas game that interfaces with hopr.

Learn more on the Gitcoin Issue Details page.

@h1xten
Copy link

h1xten commented Sep 9, 2022

@nionis @thewanderingeditor I applied but was never approved, but I still created a tic-tac-toe dapp using hopr, in case the person who was approved does not do the job, please consider my work. I hope for your understanding. https://github.com/h1xten/tic-tac-toe-hopr

@thewanderingeditor
Copy link
Contributor

@Rohitkumarvarma-369 Any news here? If not then I'd open this up to another hunter

@Rohitkumarvarma-369
Copy link

Rohitkumarvarma-369 commented Oct 11, 2022 via email

@h1xten
Copy link

h1xten commented Oct 12, 2022

@Rohitkumarvarma-369 Any news here? If not then I'd open this up to another hunter

Sorry to bother you, as the previous participant refused to complete the task, can I apply for this task? I did this task already more than a month ago, left a comment and a link to the repository above

@thewanderingeditor
Copy link
Contributor

Hey @h1xten. Cool. I'll shift the bounty over to you ASAP. Looking at your PR, it looks like it was developed for API v1, not v2? You can find the HOPR dApp standard here.

@h1xten
Copy link

h1xten commented Oct 12, 2022

Привет@h1xten. Прохладный. Я переведу награду на вас как можно скорее. Глядя на ваш PR, похоже, что он был разработан для API v1, а не v2? Вы можете найти стандарт HOPR dApp здесь .

Thank you for your reply. I used API v2. For example you can check endpoints here: https://github.com/h1xten/tic-tac-toe-hopr/blob/main/src/store/peerSlice/peerApi.js

@thewanderingeditor
Copy link
Contributor

Привет@h1xten. Прохладный. Я переведу награду на вас как можно скорее. Глядя на ваш PR, похоже, что он был разработан для API v1, а не v2? Вы можете найти стандарт HOPR dApp здесь .

Thank you for your reply. I used API v2. For example you can check endpoints here: https://github.com/h1xten/tic-tac-toe-hopr/blob/main/src/store/peerSlice/peerApi.js

Ah awesome thanks. I just looked quickly at the readme. I'll do some proper testing over the next few hours and get back to you.

@h1xten
Copy link

h1xten commented Oct 12, 2022

Привет@h1xten. Прохладный. Я переведу награду на вас как можно скорее. Глядя на ваш PR, вероятно, что он был разработан для API v1, а не v2? Вы можете найти стандарт HOPR dApp здесь .

Спасибо за ваш ответ. Я использовал API v2. Например, вы можете проверить конечные точки здесь: https://github.com/h1xten/tic-tac-toe-hopr/blob/main/src/store/peerSlice/peerApi.js .

Ах здорово спасибо. Я просто быстро просмотрел ридми. Я проведу необходимые тесты в течение следующих нескольких часов и свяжусь с вами.

Wonderful. Waiting for your reply :)

@h1xten
Copy link

h1xten commented Oct 16, 2022

@thewanderingeditor Hello, is there any new information on my project?

@h1xten
Copy link

h1xten commented Oct 22, 2022

Привет@h1xten. Прохладный. Я переведу награду на вас как можно скорее. Глядя на ваш PR, похоже, что он был разработан для API v1, а не v2? Вы можете найти стандарт HOPR dApp здесь .

Thank you for your reply. I used API v2. For example you can check endpoints here: https://github.com/h1xten/tic-tac-toe-hopr/blob/main/src/store/peerSlice/peerApi.js

Ah awesome thanks. I just looked quickly at the readme. I'll do some proper testing over the next few hours and get back to you.

Hello, is there any new information on my project?

@thewanderingeditor
Copy link
Contributor

Hi @h1xten. Can you apply via https://gitcoin.co/issue/29283 so I can approve you and then pay out the bounty via gitcoin?

@h1xten
Copy link

h1xten commented Oct 25, 2022

Hi @h1xten. Can you apply via https://gitcoin.co/issue/29283 so I can approve you and then pay out the bounty via gitcoin?

There is already someone working on this bounty.
image

@h1xten
Copy link

h1xten commented Oct 25, 2022

@thewanderingeditor I think you should reject the previous worker

@nionis
Copy link
Contributor Author

nionis commented Oct 27, 2022

@thewanderingeditor I tried to remove @Rohitkumarvarma-369 from the bounty but couldn't, I suspect I can't do that, maybe a permissions issue? - please follow up with @h1xten once it's re-assigned

@thewanderingeditor
Copy link
Contributor

@thewanderingeditor I think you should reject the previous worker

Done. Can you try applying now?

@h1xten
Copy link

h1xten commented Oct 28, 2022

@thewanderingeditor I think you should reject the previous worker

Done. Can you try applying now?

I did

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 2963.7681 HOPR (200.00 USD @ $0.06/HOPR) has been submitted by:

  1. @h1xten

@thewanderingeditor please take a look at the submitted work:


@h1xten
Copy link

h1xten commented Oct 29, 2022

@thewanderingeditor I did everything and submit the work, check it please

@h1xten
Copy link

h1xten commented Nov 2, 2022

@nionis @thewanderingeditor I did everything, what should I do next?

@thewanderingeditor
Copy link
Contributor

Hi @h1xten. Sorry for the delay. I'm back from holidays now and will check your work this afternoon. Thanks for your patience.

@h1xten
Copy link

h1xten commented Nov 2, 2022

Hi @h1xten. Sorry for the delay. I'm back from holidays now and will check your work this afternoon. Thanks for your patience.

Well, thank you 🙂

@thewanderingeditor
Copy link
Contributor

@h1xten This looks great, but it seems to be using API v1 rather than v2? You can learn more here.

If you're not sure how to update to API v2, I'd suggest visiting our Discord for help. This issue has come up with some of the other game bounties.

@h1xten
Copy link

h1xten commented Nov 3, 2022

@h1xten This looks great, but it seems to be using API v1 rather than v2? You can learn more here.

If you're not sure how to update to API v2, I'd suggest visiting our Discord for help. This issue has come up with some of the other game bounties.

I used API v2. For example you can check endpoints here: https://github.com/h1xten/tic-tac-toe-hopr/blob/main/src/store/peerSlice/peerApi.js
It's not API v2?

@h1xten
Copy link

h1xten commented Nov 3, 2022

@h1xten This looks great, but it seems to be using API v1 rather than v2? You can learn more here.

If you're not sure how to update to API v2, I'd suggest visiting our Discord for help. This issue has come up with some of the other game bounties.

You already asked me about the API. I think I used the API correctly using your documentation.

image
image

@thewanderingeditor
Copy link
Contributor

@h1xten My understanding is that under API v2 the user shouldn't have to specify the WS endpoint.

We need these games to run on the HOPR Playground which only provides users with API url and API key as parameters.

@h1xten
Copy link

h1xten commented Nov 3, 2022

@h1xten My understanding is that under API v2 the user shouldn't have to specify the WS endpoint.

We need these games to run on the HOPR Playground which only provides users with API url and API key as parameters.

Ah, okay, I'll redo it and write it, okay?

@thewanderingeditor
Copy link
Contributor

Awesome. Thanks!

@h1xten
Copy link

h1xten commented Nov 7, 2022

@thewanderingeditor I redid it, you can check the repository again, and I also attach a demo video: https://youtu.be/2J9CHP9QKRQ

@thewanderingeditor
Copy link
Contributor

Thanks! Checking now.

@thewanderingeditor
Copy link
Contributor

Hi @h1xten. Thanks for the update. Connection was smooth and it looks great. Just a couple of things:

  • It would be great to acknowledge when the game is a draw, especially as this is the most common outcome for tic-tac-toe. At the moment the board just fills up, the game waits for the next turn, but there's nowhere to play

  • Is there a way to start a new game after one finishes? I tried creating a new game but it would never erase the old one. I couldn't make it work for the same set of players or swapping in a new opponent.

  • On which note, it would be good to have a button to quickly start a new game with the same players once a game finishes, as that seems the most likely thing players would want to do.

@h1xten
Copy link

h1xten commented Nov 8, 2022

Hi @thewanderingeditor , thanks for the detailed answer. Since I started developing the application when I was not selected yet, so I did not take into account all the moments of the game, but now I will be happy to fix it and add everything that you indicated in the message, thanks for understanding )

@h1xten
Copy link

h1xten commented Nov 10, 2022

Hello @thewanderingeditor , I did everything that you indicated in the message above, in addition, I added a message that the user was invited to the game and he can just accept it. Check it please. Demo: https://youtu.be/a6D-QCBszhs

@h1xten
Copy link

h1xten commented Nov 12, 2022

Hi @thewanderingeditor sorry to bother you, what about this update?

@thewanderingeditor
Copy link
Contributor

thewanderingeditor commented Nov 13, 2022 via email

@h1xten
Copy link

h1xten commented Nov 13, 2022

Hi. Thanks for the fixes. Don't have full access to my GitHub this weekend, but will check tomorrow morning.

On Sat, 12 Nov 2022, 17:45 Alexander, @.> wrote: Hi @thewanderingeditor https://github.com/thewanderingeditor sorry to bother you, what about this update? — Reply to this email directly, view it on GitHub <#173 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG77WY73BHAVMPSDNQHEBPDWH63TFANCNFSM576GX6RA . You are receiving this because you were mentioned.Message ID: @.>

Oh, okay thanks, sorry to bother you over the weekend

@thewanderingeditor
Copy link
Contributor

Awesome work @h1xten! I particularly like the automatic invite popup. Everything seems to work great now. Will pay out on this this afternoon.

@h1xten
Copy link

h1xten commented Nov 16, 2022

Awesome work @h1xten! I particularly like the automatic invite popup. Everything seems to work great now. Will pay out on this this afternoon.

Thank you :)

@tolbrino tolbrino removed this from CORE Roadmap Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants