Share your repls and programming experiences

← Back to all posts
Oh, a game to play when your bored
tankerguy1917 (178)

About

This game is a recreation of a game me and my friends use to play in school. The reason why it was called doodle wars was because we played it on paper, so sorry, no pictures or doodles.

The game
The way you play is by buy trees, mines, rivers, and boats, collecting resources, selling said resources, and then doing it again.
You could call it an idle game, but its a little more manual than that

Important news

Right now I and working on a new version of this, but with other "places" that you can interact with.

Let me know how you like it, and what you think needs to be added.

Comments
hotnewtop
ABigelow (2)

@ThomasMableson I had this exact problem too

tankerguy1917 (178)

@ThomasMableson no problem. make sure you check out this

ThomasMableson (3)

@tankerguy1917 The newer version will not run :(

tankerguy1917 (178)

@ThomasMableson i dont know whats wrong. others have said this too, but then when i check it out, it works just fine :(

ThomasMableson (3)

Its okay, things will not always work. This has a lot of potential. If you ever need any help just ask
@tankerguy1917

FloCal35 (666)

This is a fun game.

What could be added

  • (of course) more materials (which means more ways to get materials)
  • Wars with CPU "countries"
  • Population (which means food consumption)

I could see this going very far and becoming very popular with future updates

I could help you if you want

tankerguy1917 (178)

@FloCal35 i was planning on adding these into the game im working on right now.
and if you want to help i can invite you to join after i comment in a bit of stuff. and thanks

diffleysnumbero (9)

any1 can join with this can u remove the comment @FloCal35

tankerguy1917 (178)

@shrey2008 i will work on it most days. the updates will range from small tweaks to new features

IntelDS (2)

@FloCal35 Remove the link b/c anyone can just join and edit(I just joined by accident)

IntellectualGuy (825)

@tankerguy1917 Can you add me to the team with @FloCal35 because I can help with the game.

FloCal35 (666)

Actually @shrey2008, just request access to @tankerguy1917’s repl. I’m not doing the team thing.

tankerguy1917 (178)

@shrey2008 you have to ask @FloCal35, im not a team admin

IntellectualGuy (825)

I sent you a request to ad me to the repl, can you accept it ?
@tankerguy1917

tankerguy1917 (178)

@shrey2008 sure, im probably not gonna let to many more people in tho. cant have too many people on it, yn

IntellectualGuy (825)

@tankerguy1917 You could add a randomizer for a natural disaster to happen and you would lose a certain amount of money, and materials. Also can you add me to the repl again?

tankerguy1917 (178)

@IntellectualGuy yeah natural disasters would be cool, and yeah ill add you

AndrewRadu (0)

@tankerguy1917 A suggestion I will give is that you should make another account where you work on it there and when your done bug fixing and its done copy and paste it into this project so that this ones always up and running

tankerguy1917 (178)

@AndrewRadu yeah, im recoding it in a new repl and then im going to copy and paste the new, fixed code into here. sorry about all the stuff wrong, things have just been error after error today

AndrewRadu (0)

@tankerguy1917 Ok also make sure you make your code as readable and easy to add new features possible before you add more stuff it will help if you want to make this long term

SilvermoonCat (437)

you should fix that if you fight a one person war and lose you get -10 soliders

tankerguy1917 (178)

@SilvermoonCat ok. thanks for letting me know about this.

tankerguy1917 (178)

@GalaxyWolfX haha. not only did i not know that was possible, i didnt think that anyone else would ever find this. what do you thibk of it btw

GalaxyWolfX (77)

@tankerguy1917 the error or the game? I was unable to scavenge for resources

GalaxyWolfX (77)

@tankerguy1917 also I was just going through Repl.it's archives, dusting off old code.

tankerguy1917 (178)

@GalaxyWolfX i didnt know about the glitch. and i didnt know repl had archives. thats pretty neat.

GradeFStudent (3)

I am getting 0 resources when I try to collect resources.

tankerguy1917 (178)

@GradeFStudent i just tried it and its working fine

GradeFStudent (3)

@tankerguy1917 idk why but its not working for me

You collected
0 wood
0 stone
0 coal
0 food

Press enter to continue

tankerguy1917 (178)

@GradeFStudent hmmm, idk whats wrong then, because when i went in and checked the code and ran it, everything was fine

06rha1504 (2)

@GradeFStudent you need to buy things to colect resorses fron- if you buy a tree that gets you started

ABigelow (2)

You collected
5 wood
0 stone
0 coal
0 food

Press enter to continue

Traceback (most recent call last):
File "main.py", line 1013, in <module>
homeScreen()
File "main.py", line 203, in homeScreen
mainMenu()
File "main.py", line 253, in mainMenu
buyMenu()
File "main.py", line 309, in buyMenu
buyMenu()
File "main.py", line 560, in buyMenu
mainMenu()
File "main.py", line 259, in mainMenu
cResources()
File "main.py", line 685, in cResources
for x in market.lvl:
TypeError: 'int' object is not iterable

tankerguy1917 (178)

@ABigelow ok. now it should work. sorry about that

ABigelow (2)

I just went to collect resources and it messed up. It told me to press enter so i did and then the code ended.

tankerguy1917 (178)

Update

Yes. You read that right, another update.
As well as some bug fixes, we here at DoodleInc. have brought to you a few new features.
The first of these new features is a new building called a Market. A Market allows you to collect money, and a nice little amount, every time you collect resources
The second of these new features is a Bank, where you can store money in case of a natural disaster ruining your stuff and taking your money, as well as a reserve in case you lose all your money in a war.

zhaq6129 (48)

wait why would you buy a civillian

tankerguy1917 (178)

@zhaq6129 right now they dont do anything, but expect that to change soon ;)

ABigelow (2)

The game ended bc i was trying to buy a civilian tent and it showed up as an error.

ABigelow (2)

I was playing the game and when I went to buy a coal mine the game automatically stopped running and my progress was lost.

AndrewRadu (0)

You should make an else function to keep on asking the question if an input that isnt one of the options is recieved so that people dont accidentally lose their progress

tankerguy1917 (178)

@AndrewRadu ok. sorry, i forgot to while trying to fix a bunch of bugs

IntelDS (2)

What's that? Update?

Yeah yeah, another update.
BUY MODES! you can now choose between 4 modes when buying: one, ten, hundred, and all possible (not working).
Thanks for your time
@tankerguy1917 @diffleysnumbero @IntellectualGuy @FloCal35

tankerguy1917 (178)

@IntelDS i invited you to a repl, it is where we will test out features before adding them into the original

tankerguy1917 (178)

IMPORTANT UPDATE

There shouldn't be any more bugs. Me and the rest of DoodleInc. have spent the entire day recoding this to make it easier to read and understand, easier to play, and to fix any and hopefully all bugs that have been happening

GradeFStudent (3)

I keep getting this error after I enter the name of my place.

Traceback (most recent call last):
  File "main.py", line 395, in <module>
    placeMake()
  File "main.py", line 393, in placeMake
    game1()
NameError: name 'game1' is not defined
tankerguy1917 (178)

@GradeFStudent yeah. some crazy stuff happened, just know that it should be fine by tomorrow, the next day at most

bobjeffco (5)

Awesome game! I got an error AttributeError: 'Place' object has no attribute 'population' but otherwise great game!

tankerguy1917 (178)

@bobjeffco oh ok. thanks. been working on bugs allday so thanks for letting me know

Nanowrimoijk (63)

I keep getting an indentation error

tankerguy1917 (178)

@Nanowrimoijk sorry, were in the middle of adding something and its not going as planned.

tankerguy1917 (178)

@Nanowrimoijk k it shoud work know. there is a glitch tho where after every action (like buying, selling etc.) it makes you enter in a name again

Nanowrimoijk (63)

@tankerguy1917 still get this error
File "main.py", line 790
def placeMake():
^
IndentationError: unindent does not match any outer indentation level

tankerguy1917 (178)

@Nanowrimoijk it should work now. sorry about that

JAGRIFF (2)

if u go to buy something soldier has a cap s instead of $

IntelDS (2)

@JAGRIFF @tankerguy1917 thank you! We will fix that soon

adl212 (172)

Wow this is addicting! Here's a challenge for you, why don't you try to make it into a html game? You can use html for the frontend and use python as the backend.

tankerguy1917 (178)

@adl212 ok. just what is frontend and backend

iocoder (162)

@tankerguy1917 frontend - what the user/player sees

backend - what the code is doing (the user/player does not see)

tankerguy1917 (178)

@ridark do you know how i would do that

iocoder (162)

@tankerguy1917 well, you could perhaps use django or use the python webserver package, and then.. wait why don't you just go here and fork the template reply to me when you've done this

iocoder (162)

@tankerguy1917 now ping me to it and i think it can recreate this game into an html5 game!

MrHiTech (11)

Tried to play, but error message:
File "main.py", line 437
else:
^
SyntaxError: invalid syntax

tankerguy1917 (178)

@MrHiTech yeah, i was adding something in and then that else stopped working. idk whats wrong tho

tankerguy1917 (178)

@MrHiTech ok it should work know. let me know what you think

tankerguy1917 (178)

Wow, another update

The battle feature is complete. And, if you want to think of it like this, there is finally a purpose to this game, to conquer the world.

Pizzaz4me (56)

how do I get more food?

IntelDS (2)

@PlaySoccer Food can be obtained by buying a river then a boat. Then just collect

IntelDS (2)

Update (Yay)

A little tiny map has been added, along with color.
If you have a design you want to be used, please reply to this comment with your design (Can be picture or text) and we'll add it in along with your username in the map maker credits.

tankerguy1917 (178)

Announcement

The war option is not yet complete
We are adding the necessary things needed to make it work
I'm not sure, but this repl may have some issues until we are done
Thank you for your time

Stan085 (23)

also, you shouldaddREADME.mdfile thatis for updates,andinfo about why you madethis and credits and stuff

meh, not my problem

tankerguy1917 (178)

@Stan085
okwilldoiplannedtodothatalready

Stan085 (23)

4 u 2 do: (I suggest)

  • make civilian tents do stuff
  • more resources (duh)
  • make land tax based on buildings, not $dollas (though $dollas could be a factor, if you want)
  • sell all materials feature
  • sell buildings and mines
  • probably decline all of this
tankerguy1917 (178)

@Stan085
-Civilian tents are just so you can buy ciivlians, who'll have a purpose later on
-More resources will be added sometime
-I'll see what i can do to make the tax a little more realistic
-Sell all materials sounds like a good idea
And yes, I'll ignore all of this

Stan085 (23)

@tankerguy1917

KTHXBYE BTW this is lolcode
diffleysnumbero (9)

hey i was removed from the team, i had just spent 5 hours of my life on it could u re add me

diffleysnumbero (9)

@tankerguy1917 alr ok, since ive been delted i forked doodlewars and just added a working war feature, if i get added i can implement it