bugLiquid War 6 - Bugs: bug #34175, Random bot doesn't always behave...

 
 

bug #34175: Random bot doesn't always behave randomly

Submitted by:  Michael Raskin <d79240fd>
Submitted on:  Tue 30 Aug 2011 04:50:04 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Status: FixedPrivacy: Public
Assigned to: Christian Mauduit <ufoot>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 30 Aug 2011 08:52:36 PM UTC, comment #4:

Lines 51,52

I see no way this could work correctly.

AOUCH, indeed, no chance this can work. Strange, must have been OK some time ago and I broke it. Fixes probably looks like:

random_context->pos_x = lw6sys_random(lw6ker_game_state_get_w (data->game_state));

random_context->pos_y = lw6sys_random(lw6ker_game_state_get_h (data->game_state));

It's untested (currently, my source tree is a whole mess as I'm implementing new features) but there are good chances it works. BTW using lw6sys_random instead of native libc functions is interesting just for portability. Still I committed the above patch a minute ago, will be included in next release for sure.

Thanks for nailing this one.

Have a nice day,

Christian.

Christian Mauduit <ufoot>
Project AdministratorIn charge of this item.
Tue 30 Aug 2011 08:16:54 PM UTC, comment #3:

http://random/mod-random-move.c?id=c37acc932afc5717ec1ec8902724fba0891a87cb

Lines 51,52

I see no way this could work correctly.

Michael Raskin <d79240fd>
Tue 30 Aug 2011 07:16:51 PM UTC, comment #2:

64-bit system, I think - any map, "fish" included.

Michael Raskin <d79240fd>
Tue 30 Aug 2011 06:27:10 PM UTC, comment #1:

Huh, I need to check that out. Thanks for report. Any clue on which map that was on? Context? Oh, BTW, 2 new bots coming in next 0.0.11beta, called "brute" and "follow".

PS: it's really cool to have such feedback, bug hunting ain't fun when there's nothing to shoot at ;)

Christian Mauduit <ufoot>
Project AdministratorIn charge of this item.
Tue 30 Aug 2011 04:50:04 PM UTC, original submission:

Version: 0.0.10beta (latest release)

Random bot just goes to the bottom right corner and stays there. Idiot bot works correctly.

Michael Raskin <d79240fd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ufoot (Posted a comment)
  • -unavailable- added by d79240fd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 04 Oct 2011 08:22:58 AM UTCufootStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Tue 30 Aug 2011 08:52:36 PM UTCufootStatusNeed Info=>Ready For Test
    Tue 30 Aug 2011 06:27:10 PM UTCufootStatusNone=>Need Info
      Assigned toNone=>ufoot

    Back to the top


    Powered by Savane 3.1-cleanup1