rorywalsh / wizard

1 stars 0 forks source link

Some thoughts.. #2

Open rorywalsh opened 4 years ago

rorywalsh commented 4 years ago

Het @Robzon33. Thanks for the PR.   I've some ideas about how to make this a little more accessible, I'm just thinking aloud here.. 

It would far better to make a member method of the playerDetails class, or the main game class? What do you think? Anything to add to this or? 

rorywalsh commented 4 years ago

I just pushed a dev branch now. I tried to clean up the classes a little. I've put some comments in. It won't run now as I'm pretty sure I broke it, but I think that's Ok until we finalise the class structure..

[edit] @Robzon33: the dev branch is now cleaned up and should run fine.

Robzon33 commented 4 years ago

Hey @rorywalsh , just pulled the newest version. I'm not able to run it. grafik Do you have any ideas why. When i try to connect a client i get connected = false. grafik

Robzon33 commented 4 years ago

Besides that... I like your ideas about the new structure. Some abstract classes for card decks and the game itself. I'm just thinking about the variations of card games. What do they have in common? But it's cool to try to cover as many games as possible. I'm gonna focus on that tomorrow. The multiplayer aspects... I think it should be a private connection between host and client. But to be honest, I'm not sure how to set up a nice communication. That's your task first of all.

rorywalsh commented 4 years ago

Try launching at this address: http://127.0.0.1:3000/host.html?=roomId

And then launch two new pages at: http://127.0.0.1:3000/?=roomId

You can swap roomId with whatever you like..

On Wed, 22 Apr 2020 at 22:19, Robzon33 notifications@github.com wrote:

Besides that... I like your ideas about the new structure. Some abstract classes for card decks and the game itself. I'm just thinking about the variations of card games. What do they have in common? But it's cool to try to cover as many games as possible. I'm gonna focus on that tomorrow. The multiplayer aspects... I think it should be a private connection between host and client. But to be honest, I'm not sure how to set up a nice communication. That's your task first of all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rorywalsh/wizard/issues/2#issuecomment-618045959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUQWGOLXPJKCOFCBS3NV43RN5NNJANCNFSM4ML7RS3A .

Robzon33 commented 4 years ago

ah yeah, it looks very different... but working now

rorywalsh commented 4 years ago

Yeah, I've stripped it back a good bit! And I'm having some fun trying to draw the card symbols 🤣

Robzon33 commented 4 years ago

Hahaaa, except from diamonds it seems like a difficult task. Doesn't it exist somewhere??

rorywalsh commented 4 years ago

Sure, in pictures!! The easy way would be to simply use a PNG image 🙄 But I couldn't do that...

The biggest issue here is getting it to scale correctly. Everything has to be relative to the screen size, and this can vary dramatically across devices.

Robzon33 commented 4 years ago

What did we start with man? :)

Robzon33 commented 4 years ago

Ah yeah.... you were asking in a comment:

can't access this.gameType.validateMove() for some reason??!±?!!?

The method is static. This is way you cant access it with the object.

rorywalsh commented 4 years ago

I only marked it static so I could actually access it. Remove the static and it's inaccessible for some reason..

Robzon33 commented 4 years ago

ah ok

rorywalsh commented 4 years ago

I'm not too concerned about that. Check out my comment about game rules, that's a much bigger issue!

On Thu, 30 Apr 2020 at 16:04, Robzon33 notifications@github.com wrote:

ah ok

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rorywalsh/wizard/issues/2#issuecomment-621912398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUQWGIQ553INLLYBWEJBIDRPGHRXANCNFSM4ML7RS3A .