Open rorywalsh opened 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.
Hey @rorywalsh , just pulled the newest version. I'm not able to run it. Do you have any ideas why. When i try to connect a client i get connected = false.
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.
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 .
ah yeah, it looks very different... but working now
Yeah, I've stripped it back a good bit! And I'm having some fun trying to draw the card symbols 🤣
Hahaaa, except from diamonds it seems like a difficult task. Doesn't it exist somewhere??
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.
What did we start with man? :)
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.
I only marked it static so I could actually access it. Remove the static and it's inaccessible for some reason..
ah ok
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 .
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?