Potholes in an automated multiplayer game where players can use their own algorithms

About tags

I noted this as Java and the question in C ++. This means that I am not looking for answers in specific languages. I just noted C ++ and Java, because I own them and, most likely, I will understand your code samples if they are written in these (or similar) languages.

What am I looking for?

Pointers and insight into security , I need to consider when developing software, mostly games such as described below. For security, I mean checking and double checking that the user is not acting in a way that is not intended. This may mean behavior such as sending his / her updated collection of the most malicious viruses existing on the server / other clients, or otherwise jeopardizing the user experience for other players, for example, by hacking.


Expected Comments and Responses

You ask how to stop people from hacking your game?

- , . , , (), , .

X

CodeReview Programmers; . , ( ADTC), . , SO. , , , , , , . , SO Programmers, , , , .

, Sockets. Google .

. , , , . , , .


?

, , . -, . , , .

.jar, . () , .

, . , , , , 30 .

.


:

package template

import snake.*;

public class TemplateLogic extends SnakeLogic {

    @Override
    public void onLaunch() {
    }

    @Override
    public String getMove() {
        return "UP";
    }

}

, , , String ( "", "", "", "",), . , , .

, . , , , , , , . , . , . .

, , , , ()? , , Thread.sleep(): , 10 . , , / , .


Off-:

@Darinth : , , -, . , : , , , , .


- ? , , .

, , , . , , . .

.


,

  • - . , , , ( 4 , 2 , 2 , , , ..). , , @ToYono, .

  • . ( ). @ToYono.

  • . . , , , , . @Surt.

  • .. , . @Darinth , , .

+4
4

, . , ?

1) , .

  • / , , , . , , -

    bool allowedMove() { return true;... }

, SHA3? MD5 .

: WoW teleport hack, x, y, z .

  • , .
  • .
  • x, y, z, , .
  • Bliz .
  • .
  • .
  • , .
  • , -, .

2) , . , , , ... .

  • , , , . .

3) , .

  • , 2- .

: XXX

  • API Windows.

4)

  • AI,

: - , , .

  • , , .
  • - , , .
  • .
  • , , Windows, . / , IP.
  • , .

5) , ,

  • , , .

: ?

  • cheater , .
  • , 2 .
  • MAC- , , . , .

6) , .

  • , , .

: tic-tac-toe

  • . ( tic-tac-toe).
  • , .
  • .
  • , .

7) .

  • , "" , "".
  • , , , .

8)

  • 2

: WoW battlegrounds

  • , .
  • , , . ( , ).

  • , 2 Mac- , Mac.

9) , .

X) ( )

  • -, , .

:

  • , , , ..

  • , , - , , , , . , , , , , , .

  • .
+2

, .

  • , , ?

, , . , , .

, , , . , . String.

  • ?

, , . , @ , .

Edit:

OP , , .

int, 0 , -1 , -2 , 8 ( cookie). , - . , - .

, .

+3

, . ? ? java/++ . , , , , . , "", , , , , . , , (, Lua Javascript). -, . , /, /.

, , , , .

+1

- . . , , . , . , .

, , :

  • , → .
  • UserA. UserB UserC . UserA UserD Host @UserB. / /. = > , ( ...)
  • . , = > , , - - , . , , .
0

All Articles