|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
[Risk] KISS Risk Map output
Following K.I.S.S. philosophy, I made a map for Risk contest using HTML tables.
Please have a look at it http://gato.vze.com/RiskTab1.html http://gato.vze.com/RiskTab2.html First one is the map with land numbers. Second has some troops in some lands, each troop is a number in a team-color rectangle. There are 11 red troops on land 2... It woudn't be hard to base on this tables to show a rather useful map. I hope you like it! |
|
#2
|
|||
|
|||
|
[Risk] RE: KISS Risk Map output
Really nice idea ! Surely helpful.
I think you should use more light color for the continents, so you can see the coloured troups easier. For example: Asia => #BBFFAA, North America => #FFFFBB, ... |
|
#3
|
|||
|
|||
|
[Risk] RE: KISS Risk Map output
Here you go everyone...
Pretty obvious how to use it... I used the same variables that Xs0 made. I wrote a script to parse Gatopeich's HTML to place PHP code in appropriate places. Oof, I've placed it here: http://codewalkers.com/seecode/338.html IT looks the same, just saves you about 20 minutes (or if you're a master at regexps, you could possibly integrate the PHP faster) |
|
#4
|
|||
|
|||
|
[Risk] Having a look at the game with my KISS map
I made three scripts:
http://gato.vze.com/Risk-showgame.zip They let you have a look at a log file "gamelog.txt", step by step, with a table-based map. You put them to the same directory as "gamelog.txt", then open "showgame.php" on your browser, or "showgame.php?turn=23" to check out turn 23. "showgame.php" scans "gamelog.txt" for desired turn, extracts the url and then calls "showmap.php" with the same GET string, so it can show the current map... More or less ;-) I find it nice, at least. |
|
#5
|
|||||
|
|||||
|
[Risk] RE: KISS Risk Map output
cool !!
but it can't display the last turn (winner turn), because the script runs in a maximum execution time exceed error. Bug ? I use these stylesheets for better reading the map. Perhaps you also want to use it: php Code:
|
|
#6
|
|||
|
|||
|
[Risk] RE: RE: KISS Risk Map output
Quote:
Well, I didn't care about that, I was in a hurry! |
|
#7
|
|||
|
|||
|
[Risk] RE: KISS Risk Map output
Hi, I just put an update of my 'showgame.php'
gato.vze.com/Risk-showgame.zip Now you can look at last turn (added EOF check). Also, I changed the map a little so lands 16 and 17 look connected. I hope it's been useful for somebody out there! |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [Risk] KISS Risk Map output |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|