|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[Risk] conclude alliances
1.) Are we aloud to use sessions?
If so, are we aloud to conclude alliances with other players? Lets say: a 'non-attack-pact'. Do you get my point? |
|
#2
|
|||
|
|||
|
[Risk] RE: conclude alliances
Sessions are designed for browsers, and won't work, if you use them. You will need to store any data you need in mydata.txt.
While I wouldn't mind alliances, there is no way for you to communicate with other players, so you can't achieve them... |
|
#3
|
||||
|
||||
|
[Risk] RE: conclude alliances
Maybe scripts can't directly communicate, but indirectly through the board they could.
For instance, if the algorithm used by another script for the initial distribution of soldiers is known, that script could be identified. Mutual identification and a little pre-planning is all that is really needed to setup alliances. |
|
#4
|
|||
|
|||
|
[Risk] RE: conclude alliances
Well, I won't consider it cheating if you try that, but I doubt it's worth the trouble - the two scripts may not even play together...
|
|
#5
|
|||
|
|||
|
[Risk] RE: conclude alliances
I didn't know how the judge script is programmed, but now I know sessions are not an option. So I'll skip the alliances part.
|
|
#6
|
|||
|
|||
|
[Risk] RE: conclude alliances
I don't think alliances should be allowed, since this is a coding contest after all. Communicating may be much easier than you think...
|
|
#7
|
||||
|
||||
|
[Risk] RE: conclude alliances
This would require both scripts to have the same alliance system and as xs0 said, the two scripts may not even play together.
|
|
#8
|
|||
|
|||
|
[Risk] RE: conclude alliances
Why do you think of only two? And of course, the two will have to share an alliance system - no problem at all if you conclude alliances prior to the contest
|
|
#9
|
|||
|
|||
|
[Risk] RE: conclude alliances
Like I said, if you manage to identify other scripts without looking at files not in your directory, it's fine by me, although I think your time would be better spent improving the strategy...
|
|
#10
|
|||
|
|||
|
[Risk] RE: conclude alliances
it can call the scripts like the judge script will do.
First, the script identifiy itself and look for its own URL. When it knows its url, like: http://127.0.0.1/risk/script3/risk.php, it's able to file() or fopen() all the other script by replacing the '3' by '1', '2' and '4' héhé ;P Dinesh |
|
#11
|
||||
|
||||
|
[Risk] RE: conclude alliances
Yes, but if you read the rules you would know that scripts aren't allowed to access files outside their own directory. This would lead into disqualification of your script!
|
|
#12
|
|||
|
|||
|
[Risk] RE: conclude alliances
well, it's not accessing files. it's opening a socket connection
|
|
#13
|
|||
|
|||
|
[Risk] RE: conclude alliances
The rules say:
Quote:
That means ANYTHING... |
|
#14
|
|||
|
|||
|
[Risk] RE: conclude alliances
hum, sockets aren't outside/inside anything... just like memory
|
|
#15
|
|||
|
|||
|
[Risk] RE: conclude alliances
Come on everyone, move on and get over it
Besides... if your script is good enough then you wont need alliances :laugh: !!! (the gauntlet is off!) |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [Risk] conclude alliances |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|