Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 29th, 2003, 10:38 AM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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?

Reply With Quote
  #2  
Old June 30th, 2003, 11:07 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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...

Reply With Quote
  #3  
Old June 30th, 2003, 11:30 AM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 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.

Reply With Quote
  #4  
Old June 30th, 2003, 11:35 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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...

Reply With Quote
  #5  
Old June 30th, 2003, 01:24 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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.

Reply With Quote
  #6  
Old July 3rd, 2003, 08:44 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[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...

Reply With Quote
  #7  
Old July 4th, 2003, 06:20 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,326 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 15677 Folding Title: Novice Folder
Time spent in forums: 6 Days 9 h 32 m 40 sec
Reputation Power: 4
[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.

Reply With Quote
  #8  
Old July 4th, 2003, 07:14 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[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

Reply With Quote
  #9  
Old July 5th, 2003, 01:48 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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...

Reply With Quote
  #10  
Old July 6th, 2003, 02:31 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[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

Reply With Quote
  #11  
Old July 6th, 2003, 03:14 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,326 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 15677 Folding Title: Novice Folder
Time spent in forums: 6 Days 9 h 32 m 40 sec
Reputation Power: 4
[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!

Reply With Quote
  #12  
Old July 7th, 2003, 10:04 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[Risk] RE: conclude alliances

well, it's not accessing files. it's opening a socket connection

Reply With Quote
  #13  
Old July 7th, 2003, 10:06 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Risk] RE: conclude alliances

The rules say:
Quote:
Your script should not access anything outside of its directory.

That means ANYTHING...

Reply With Quote
  #14  
Old July 7th, 2003, 11:23 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[Risk] RE: conclude alliances

hum, sockets aren't outside/inside anything... just like memory

Reply With Quote
  #15  
Old July 7th, 2003, 11:27 AM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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!)

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Risk] conclude alliances


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |