Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (591)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  HexWar4K  (Read 2729 times)
0 Members and 1 Guest are viewing this topic.
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Posted 2005-12-06 01:42:09 »

Another entry for the competition.  No comparison to Miners, but what the hey.  Any comments welcome.

http://69.198.177.99/hexwar.html

EDIT: Oh yeah, this is a 2 player game.  No AI, sorry.

Offline Anon666

Junior Devvie




aka Abuse/AbU5e/TehJumpingJawa


« Reply #1 - Posted 2005-12-06 02:56:20 »

um, is there an AI to play against? or do I have to beat myself  Roll Eyes
Offline nonnus29

Senior Devvie




Giving Java a second chance after ludumdare fiasco


« Reply #2 - Posted 2005-12-06 03:24:15 »

I was enumerating the game types we haven't seen yet; fighter, sports, and turnbased war game.  We now have a war  Grin .  I would've liked to have had an ai opponent as well.  Also, the map is pretty uninteresting.  Good implementation though.  Just not alot of replay value.  Undecided
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #3 - Posted 2005-12-06 05:04:45 »

Yeah, I threw it together before asteroids to flex the 4K muscle, then left it.  Might go back to it and try to put AI and a little randomness to the map.  But I am working on another one right now.

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #4 - Posted 2005-12-06 07:45:13 »

Works fine.  While I like the idea of two player games (I keep being tempted to do a 2 player network one), I noticed that the sole (I think) 2 player from last year didn't do well because the judges had no one to play against.  Adding AI would fix this.

Maybe for each cell, score itself & each surrounding cell - maybe = A*cell_growth + B*own_troops_in_cell + C*enemy_troops_in_cell.  Where A, B, C are TBS constants, which could be negative.  You may alternatively need weighting inversely proportional to the number of troops in the cell.  Maybe B/(own_troops_in_cell+1).

AI for attacking enemy cells could be tricky.  I assume you need the total number of your troops piling into the enemy cell, to exceed the enemy troop number.  If this is simplified to only considering an attack from one cell, the score for the enemy cell could be zeroed, if you have insufficient troops to take it.

I was thinking, maybe split the troop movements proportionally according to cell scores, but as there are only 5 moves allowed, it seems more likely that a record of the top 5 scoring moves should be kept & those executed.  Maybe simplify to only allow one troop movement from each source hex - that would avoid diluting troop effort, which could lead to attempts to capture enemy hexs to fail.

Not perfect, by a long chalk (but then the human player wouldn't have a chance).  Don't know if there's room either Wink

Alan

Time flies like a bird. Fruit flies like a banana.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #5 - Posted 2005-12-06 13:48:18 »

Interesting... I have nobody to try this with right now, though... I'll try it if I get the chance. Smiley

Offline darkpegasus

Senior Newbie





« Reply #6 - Posted 2005-12-06 15:53:17 »

Do you have any code for this that you can zip up? I had a boardgame that I was working on that had a hexagonal grid, but I couldn't ever get anything to work as well as yours does.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #7 - Posted 2005-12-06 16:53:43 »

Not working on my Mac (10.4  Java 5 latest DP)

The game window comes up but it is only 1/2 hex tile tall and 5 tiles wide.

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #8 - Posted 2005-12-06 19:31:09 »

Do you have any code for this that you can zip up? I had a boardgame that I was working on that had a hexagonal grid, but I couldn't ever get anything to work as well as yours does.
Sure, take a look.

http://69.198.177.99/H.zip

Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #9 - Posted 2005-12-06 19:32:02 »

Not working on my Mac (10.4  Java 5 latest DP)

The game window comes up but it is only 1/2 hex tile tall and 5 tiles wide.
Made a change that will hopefully fix that.  Can you try again, just to see if the window is the right size.

Thanks.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #10 - Posted 2005-12-06 19:33:02 »

Turns out I have more than 600 bytes left on this one.  Will definitly come back to it, after I finish the one I am working on now.

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #11 - Posted 2005-12-07 05:42:52 »

Not working on my Mac (10.4  Java 5 latest DP)

The game window comes up but it is only 1/2 hex tile tall and 5 tiles wide.
Made a change that will hopefully fix that.  Can you try again, just to see if the window is the right size.

Thanks.

FIXED.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (34 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (66 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!