proper darwinia

Anything and everything

Moderators: bert_the_turtle, jelco, Chris

alfiethecool
level1
level1
Posts: 15
Joined: Sun Jun 24, 2007 8:01 pm

proper darwinia

Postby alfiethecool » Sun Oct 12, 2008 5:40 pm

I know its a bit ambitious but i need a team for making a real dawrwinia. It will work like in game except have at first a max of say 10 darwinians. Engine will probably use Lua or simpler alternative for reasons I can not reveal at this time...
Anyone can run it but the dev team will have one running continuously and logon to it usng a client program.
Needed:

General programmers
Engine programmers
AI programmers
Interface Programmers
Someone to run it
Dawinian sitters, will look after them once they evolve to basic society i.e. teach them basic stuff like building things,Also stop them fighting to much.
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sun Oct 12, 2008 9:52 pm

Oh, joy. This again. Martin, where are you? This guy wants to be your friend...

xander
RabidZombie
level5
level5
Posts: 2413
Joined: Fri Nov 18, 2005 10:09 pm

Postby RabidZombie » Sun Oct 12, 2008 10:30 pm

Hey, yeah!

I can beta test!

And do the PR!

And break the bad news to everyone when I have to tell them the projects dead and all we have to show for it is this low poly Darwinian model and a 2D prototype made in gamemaker.
alfiethecool
level1
level1
Posts: 15
Joined: Sun Jun 24, 2007 8:01 pm

Postby alfiethecool » Mon Oct 13, 2008 7:14 pm

someone already tried?
well i wont fail.
unless noone joins team.
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Mon Oct 13, 2008 8:49 pm

alfiethecool wrote:someone already tried?
well i wont fail.
unless noone joins team.

Wait... this project will succeed unless no one does the work for you? What, exactly, are you contributing? Why do you think that you are better qualified to create a "real" Darwinia than 60 years of computer scientists?

xander
User avatar
00Davo
level2
level2
Posts: 84
Joined: Mon Sep 22, 2008 12:52 pm

Postby 00Davo » Tue Oct 14, 2008 11:52 am

xander wrote:
alfiethecool wrote:someone already tried?
well i wont fail.
unless noone joins team.

Why do you think that you are better qualified to create a "real" Darwinia than 60 years of computer scientists?

We have Python.

Code: Select all

import soul, DGInterface
ruler = DGInterface.client_connect()

class DG(soul.Soul):
    def __init__(self):
        self.sprite = open("DG.gif", "r")
        self.form_set(self.sprite)
        self.think(priority=1)
    def __order__(self, order):
        self.obey(order, priority=2)

class Officer(soul.Shephard)
    def __init__(self, ruler):
        self.shape = open("Officer.shp", "r")
        self.form_set(self.shape)
        self.orders = ruler.input_read()
        self.obey(self.orders, priority=1)

See? With Python, anything is possible! :lol: I'll go ahead and program the Squads next, unless you want Engineers first. ;)

(It was a joke)
alfiethecool
level1
level1
Posts: 15
Joined: Sun Jun 24, 2007 8:01 pm

Postby alfiethecool » Tue Oct 14, 2008 5:24 pm

Sorry its just i have my hands full with school and creating a time traveling RTS, dont ask.
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Tue Oct 14, 2008 6:21 pm

:roll:

xander
User avatar
00Davo
level2
level2
Posts: 84
Joined: Mon Sep 22, 2008 12:52 pm

Postby 00Davo » Wed Oct 15, 2008 11:59 am

And the Python you've all been waiting for! Squads, now in full Darwinian reality!

Code: Select all

import soul, DGInterface, fps
ruler = DGInterface.client_connect()
class Squaddie(fps.Player, soul.Soul):
    def __init__(self, leader, weapon):
        self.shape = open("Squaddie.shp", "r")
        self.leader = leader
        self.weapon = fps.Laser
        self.alt_weapons = [fps.Grenade, fps.Rocket, fps.AirStrike]
        self.form_set(self.shape)
        self.weapon_set(self.weapon)
        self.alt_weapon_set(self_alt_weapons[weapon])
        # Squaddies need a lot more code than usual
        if isinstance(self.leader, Squaddie):
            self.orders = leader.orders
        else:
            self.orders = leader.input_read() # The leader will be a client from the DGInterface module
        self.think(priority=2) # Squaddie thinking comes after orders
    def __order__(self, order):
        self.obey(order, priority=1) # YOU WILL OBEY ME!

class Squad(fps.PlayerGroup):
    def __init__(self, ruler):
        self.members.append(Squaddie(ruler, 0)) # This is the leader
        for member in ruler.AllowedSquaddies:
            self.members.append(Squaddie(self.members[0], 0))
        self.group_think()

    def __switch__(self, weapon):
        for member in members:
            member.alt_weapon_set(weapon)


Certainly a lot more code for Squads than Darwinians, so why do we have more FPSs than true AI simulations? Strange. ;)

Can anybody guess the Engineer's code?
User avatar
hitm4n
level3
level3
Posts: 461
Joined: Fri Nov 18, 2005 1:22 pm

Postby hitm4n » Wed Oct 15, 2008 5:24 pm

are you on drugs ?
User avatar
briceman2
level2
level2
Posts: 123
Joined: Wed Dec 12, 2007 4:30 am

Postby briceman2 » Wed Oct 15, 2008 6:36 pm

hitm4n wrote:are you on drugs ?


I think 00Davo is mocking the OP... "oh, lookie! we can do that with a little bit of python! the handiest scripting thingies you ever did see! Hooray for python! AI tractability problems will be vanquished now with just a little code..." etc. etc.

Although he *is* kinda manic about it... I mean: that's a lot of typing for a small joke... he's on more than too much caffeine... (and yes, I intended that to read both ways... you might be right)

At least he's cheerful and having fun doing what he's doing.... he's a *REAL* nerd who likes to write his jokes in code... and even sub-classes them properly !! (ugh.)
User avatar
hitm4n
level3
level3
Posts: 461
Joined: Fri Nov 18, 2005 1:22 pm

Postby hitm4n » Wed Oct 15, 2008 8:22 pm

I meant the OP - I shoulda put his name - LOL
User avatar
00Davo
level2
level2
Posts: 84
Joined: Mon Sep 22, 2008 12:52 pm

Postby 00Davo » Thu Oct 16, 2008 6:49 am

briceman2 wrote:Although he *is* kinda manic about it... I mean: that's a lot of typing for a small joke... he's on more than too much caffeine... (and yes, I intended that to read both ways... you might be right)

I don't have any caffeine. Or other drugs. At all. Scary. Although I am pretty manic. Even my notes in class are written in Python...

Code: Select all

NonGovOrg = nongovernmentalorganisation([globalcitizen() for member in group], globe.improve(), money="donation")
class Castle(town):
    def __init__(self):
        defense = ["oil", "trebuchet", moat("piranha")]
        self.wallNum = self.defense.index(moat("piranha"))
        if damsel is not InDistress:
            realism = True
        if knights == "OnCrusades":
            defense.append(women())
        else:
            defense.append(army())
class MotteNBailey(Castle):
    def __init__(self):
        Castle.__init__(self)
        self.defense[self.wallNum] = fence(type="wooden", effectiveness=-1)
        self.defense.append(hills())

Does this forum have some sort of code collapser? I appear to be posting excessive code...
briceman2 wrote:At least he's cheerful and having fun doing what he's doing.... he's a *REAL* nerd who likes to write his jokes in code... and even sub-classes them properly !! (ugh.)

I really should have started with a "being" class, parenting Darwinians, Officers, AND Squads. It would have saved on code a little once I add Engineers, Armour, and Virii.

Hey, OP! Try running my code, and discover why there isn't a "real dawrwinia"!
User avatar
briceman2
level2
level2
Posts: 123
Joined: Wed Dec 12, 2007 4:30 am

Postby briceman2 » Thu Oct 16, 2008 7:07 am

00Davo wrote:Hey, OP! Try running my code, and discover why there isn't a "real dawrwinia"!




oh. my. God. (insert favorite deity)

do you mean to tell us that you actually embedded a "message" or "lesson" to the OP in your elaborate taunting code joke?

uuuhhhhhhmmmmmmmmm... !?!?!?



...well I'm just going to ignore that and continue to treat you like a semi-normal manic person.

...and I don't believe you take class notes in python! how can you possibly keep all the indents lined up? and if you want to avoid tunnel carpal syndrome before you're old enough to drink, you better switch to perl... you can write really compact stuff with that puppy! saves keystrokes! which saves electricity! which reduces greenhouse gasses! which saves the earth! do the right thing and kick the habit!

(I hear perl 6 will be released... but I doubt that too.)
User avatar
00Davo
level2
level2
Posts: 84
Joined: Mon Sep 22, 2008 12:52 pm

Postby 00Davo » Thu Oct 16, 2008 7:18 am

briceman2 wrote:do you mean to tell us that you actually embedded a "message" or "lesson" to the OP in your taunting code?

Of course. That's what it was for.
briceman2 wrote:...well I'm just going to ignore that and continue to treat you like a semi-normal manic person.

Good.
briceman2 wrote:...and I don't believe you take class notes in python! how can you possibly keep all the TABs lined up? and if you want to avoid tunnel carpal syndrome before you're old enough to drink, you better switch to perl... you can write really compact stuff with that puppy! saves keystrokes! which saves electricity! which reduces greenhouse gasses! which saves the earth! do the right thing and kick the habit!

Firstly, writing in Perl will not cut down on electricity enough to save the Earth. Secondly, it's "carpal tunnel", not tunnel carpal. Thirdly, who uses TABs? Spaces FTW. Fourthly, writing in Perl may indeed prevent carpal tunnel, but at the expense of causing "[b][^abcdefghijklmnopqstuvwxyz](ai|ai)[n]" implosion. Fifthly, the word "fifthly" sounds really stupid.

http://xkcd.com/353/

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest