proper darwinia
Moderators: jelco, bert_the_turtle, Chris
-
- level1
- Posts: 15
- Joined: Sun Jun 24, 2007 8:01 pm
proper darwinia
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.
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.
-
- level5
- Posts: 2414
- Joined: Fri Nov 18, 2005 10:09 pm
-
- level1
- Posts: 15
- Joined: Sun Jun 24, 2007 8:01 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
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! I'll go ahead and program the Squads next, unless you want Engineers first.
(It was a joke)
-
- level1
- Posts: 15
- Joined: Sun Jun 24, 2007 8:01 pm
And the Python you've all been waiting for! Squads, now in full Darwinian reality!
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?
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?
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.)
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"!
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.)
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/
Who is online
Users browsing this forum: No registered users and 10 guests