Steve_Hill
New Coder
I have written desktop applications before using a Visual Basic type of language but am now trying to write a multiplayer interactive online card game for elderly and handicapped people. Using my normal language is proving tough and I am thinking of shifting much of the functionality to JavaScript, which I am now learning.
I think I can see how to code most of the actions I need, such as responding to button clicks and moving cards from A to B, by creating instances of a JavaScript Card Class with several methods and properties. But one thing is worrying me.
I will need to give each player a rectangular private space where his cards can be dealt and organised and where he can click on buttons to move cards out to and in from the common parts of the page, singly or in groups. This rectangular private space needs to be in the exact same place in the page for each player - ie across the bottom, for most of the width of the page.
Do I need to achieve this somehow with server-side code? Or can I handle it with JavaScript in the browsers of the players? And if so, how?
I think I can see how to code most of the actions I need, such as responding to button clicks and moving cards from A to B, by creating instances of a JavaScript Card Class with several methods and properties. But one thing is worrying me.
I will need to give each player a rectangular private space where his cards can be dealt and organised and where he can click on buttons to move cards out to and in from the common parts of the page, singly or in groups. This rectangular private space needs to be in the exact same place in the page for each player - ie across the bottom, for most of the width of the page.
Do I need to achieve this somehow with server-side code? Or can I handle it with JavaScript in the browsers of the players? And if so, how?