POV-Ray : Newsgroups : povray.binaries.images : 2048 game rendered with POVRay : Re: 2048 game rendered with POVRay Server Time
8 Jul 2024 06:51:52 EDT (-0400)
  Re: 2048 game rendered with POVRay  
From: David Buck
Date: 30 Jul 2014 16:47:45
Message: <53d959f1@news.povray.org>
On 2014-07-30 11:54 AM, scott wrote:
>> http://en.wikipedia.org/wiki/2048_(video_game)
>
> It's open source, so I can answer my own question, the value of the new
> tile that is randomly generated is chosen thus:
>
> var value = Math.random() < 0.9 ? 2 : 4;
>
> So it's a 90% chance of a 2, 10% chance of a 4. Interesting.
>

Wow, that makes a huge difference to the game.  My solver now has an 80% 
success rate at reaching 2048.

David Buck


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.