GridRoyale

16 views
Skip to first unread message

Ram Rachum

unread,
Oct 11, 2020, 4:25:53 AM10/11/20
to pyweb-il
Hi everyone!

I finally released the project I've been working on: https://github.com/cool-RR/grid_royale

I haven't reached the conclusions I wanted. I couldn't get the creatures to do anything smarter than eat the food and avoid colliding with other creatures. But I released it in a way that'll hopefully be easy for other people to extend.  

Thanks to everyone and especially Yehonatan Daniv for helping me with the frontend part.

Ram Rachum

unread,
Oct 11, 2020, 5:08:20 AM10/11/20
to pyweb-il
Also, if you could star the repo, it'll help me get on the trending page :)

Ram Rachum

unread,
Oct 12, 2020, 2:19:04 AM10/12/20
to pyweb-il
And it's on the front page of Hacker News :)


If anyone wants to help it reach the top, that'll be appreciated :)

On Sun, Oct 11, 2020 at 11:24 AM Ram Rachum <r...@rachum.com> wrote:

Ram Rachum

unread,
Oct 12, 2020, 8:01:32 AM10/12/20
to pyweb-il
Hmm, I've got 100 stars now, and yet I'm not on the trending page. I read about it and GitHub have a secret algorithm that looks at more things except stars.

If anyone feels like opening trivial pull requests, please do that. It's possible it'll push it over the edge to be on the trending page. You could make small fixes to my shitty JavaScript code (I still haven't learned the difference between const, var and let) or add a small docstring to any Python function or class.

Shai Berger

unread,
Oct 12, 2020, 9:01:39 AM10/12/20
to pywe...@googlegroups.com
On Mon, 12 Oct 2020 15:00:10 +0300
Ram Rachum <r...@rachum.com> wrote:

> If anyone feels like opening trivial pull requests, please do that.
> It's possible it'll push it over the edge to be on the trending page.
> You could make small fixes to my shitty JavaScript code (I still
> haven't learned the difference between const, var and let) or add a
> small docstring to any Python function or class.
>

And win a Hacktoberfest T-shirt!

Ram Rachum

unread,
Nov 28, 2020, 1:05:51 PM11/28/20
to pyweb-il
Update: I got the creatures to be a bit smarter :)


Now they're pretty good at walking towards the food. It'll be a lot of work until I could see interesting strategic behavior.

--
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyweb-il+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/20201012160128.359a82f5.shai%40platonix.com.

Rani Hod

unread,
Nov 28, 2020, 1:11:24 PM11/28/20
to pywe...@googlegroups.com
Better graphics too :)
Red and yellow mean what?

Ram Rachum

unread,
Nov 28, 2020, 1:24:24 PM11/28/20
to pyweb-il
Thank you 😊

Yellow means the creature just took a -5 point punishment for a collision.

Red means the creature just took a -10 point punishment for getting shot. 

Rani Hod

unread,
Nov 28, 2020, 2:21:41 PM11/28/20
to pywe...@googlegroups.com
So you probably have a bug, since I saw both of these happening with no apparent reason (no missiles/adjacent creatures).

Ram Rachum

unread,
Nov 28, 2020, 2:28:45 PM11/28/20
to pyweb-il
My bet would be it's not a bug, just the animation not making it clear enough what happened. For example, if a creature is at the edge of the board and they're trying to move towards it, that counts as a collision. If two creatures are adjacent and one shoots the other at point blank range, you will not see the bullet but the other creature would still be shot.

If you've seen a behavior that doesn't fit the two cases above, let me know the time point.

Rani Hod

unread,
Nov 28, 2020, 2:35:27 PM11/28/20
to pywe...@googlegroups.com
I think you are right (195, 204, 221, 243, 261 are all two nonadjacent creatures moving to the same spot).
Sorry for the hasty allegation...

Reply all
Reply to author
Forward
0 new messages