View on GitHub

Phpwar

code battle with php

Download this project as a .zip file Download this project as a tar.gz file
               _____  _    _ _____   __          __        
              |  __ \| |  | |  __ \  \ \        / /        
              | |__) | |__| | |__) |  \ \  /\  / /_ _ _ __ 
              |  ___/|  __  |  ___/    \ \/  \/ / _` | '__|
              | |    | |  | | |         \  /\  / (_| | |   
              |_|    |_|  |_|_|          \/  \/ \__,_|_|
              
          

Score By Hit

This picture represet an Arena with 3x3 dimension. The Hit score look just the position you play. There is the rules:

If Red player hit an empty position, lets say... move(1,1), he win: Score+1

Than Blue player hit the same position move(1,1). We have a diferent result: Blue: Score+0, Red:Score-1 and in the end the position is blank again

+
=

Score By Hit with neighbors

Now you take a look in the basic, the second score analize is the Neibor Analize.

It is simple: If you play a move and that position has neighbors. You need the majority or you lose.

From this perspective: If Red player play move(1,1)[empty position] and have 1 blue neighbor. Red still win the positions

+
=

But if Red play the move(1,1) and has 2 Blue neighbor, we have

+
=

Red lose the move because 2 Blue against Red.

Authors and Contributors

This game is in the beginning, and I like to invite you to become part of it.

For now there is just me Ivo Nascimento

If you like to send me a mail, please contact the batman at phpbr.org.