Current Events > ITT: Learning Python

Topic List
Page List: 1, 2, 3, 4, 5, 6, 7, 8, 9 ... 10
Questionmarktarius
08/30/21 8:36:52 PM
#201:


SpiritSephiroth posted...
Also I was going to create a class for the Imp too, but seeing as it was only a few lines of code
You certainly could, the code is going to be very similar to Player. This is where it's a great time to figure out inheritance.
... Copied to Clipboard!
SomeLikeItHoth
08/31/21 5:51:57 AM
#202:


Still a few hours away from finishing this Flask tutorial but now I can log in and have an account page for my blog.

1337toothbrush posted...
Daily schedule at work or in general? My work hours typically span from 7am to 3pm, but that's been moving around a bit with working from home. During those work hours it's not really fixed because it depends on what projects I'm working on and what needs to be done in those projects.
I meant your work schedule. Those are good hours. Just trying to get an idea of what I want to do.

SpiritSephiroth posted...
In other words, my code is in the clear for now. I can finally continue with this madness and expand on it!
Nice! Can't wait to see the end result.

VigorouslySwish posted...
Is it worth it to learn python in hopes of getting a low level job with no degree
IMO yes. If you're dedicated and can fight through the first few months of absorbing knowledge you can become a great programmer. After that it's learning new libraries and creating your own projects to understand how they work, followed by learning new languages.

Do yourself a favor. Next time you go out, stop by Barnes&Noble or any other book store, and pick up the book Python Crash Course. That book is a great starter point for Python.

Questionmarktarius posted...
You certainly could, the code is going to be very similar to Player. This is where it's a great time to figure out inheritance.
Yup!

---
FAM FOREVER.
... Copied to Clipboard!
SpiritSephiroth
08/31/21 8:07:02 PM
#203:


Gonna be messing around with Github. My friend told me to use it and to use something called Source control?

He also wants me to do projects with him once I've learnt enough. Till then, I'll be here updating my progress!

---
... Copied to Clipboard!
1337toothbrush
08/31/21 11:28:05 PM
#204:


Git is the source control. Github is what you're using as the remote repository.

---
... Copied to Clipboard!
Questionmarktarius
08/31/21 11:30:51 PM
#205:


Git is severe overkill for the "learning" process, unless you want to learn how git works too.
... Copied to Clipboard!
Kloe_Rinz
08/31/21 11:31:04 PM
#206:


Can someone explain CI/CD and that stuff in English
... Copied to Clipboard!
Questionmarktarius
08/31/21 11:33:08 PM
#207:


Kloe_Rinz posted...
Can someone explain CI/CD and that stuff in English
Plain english is "it updates all the damn time, like twice today even".
https://www.cisco.com/c/en/us/solutions/data-center/data-center-networking/what-is-ci-cd.html
... Copied to Clipboard!
sabrestorm
08/31/21 11:39:11 PM
#208:


If line 30 =no go line 50?

---
The Truth is the Truth
... Copied to Clipboard!
1337toothbrush
09/01/21 12:35:59 AM
#209:


Kloe_Rinz posted...
Can someone explain CI/CD and that stuff in English
Simply put, it automates parts of the integration and deployment processes. Integration being when you're working on a team and you're merging code in with other people's code (or merging with your own code), you can have the system automatically kick off build and test processes to make sure it can still build and that you didn't break any functionality covered by the tests. The delivery part is where you can have it take the built application and deploy it to a server or package it and put it up for download.

---
... Copied to Clipboard!
Kloe_Rinz
09/01/21 12:47:52 AM
#210:


How do you automate tests

I only ever really do powershell these days, I did C++ in uni but nothing about actual workflows like git, IDEs etc, just the language itself
... Copied to Clipboard!
1337toothbrush
09/01/21 1:52:33 AM
#211:


Kloe_Rinz posted...
How do you automate tests

I only ever really do powershell these days, I did C++ in uni but nothing about actual workflows like git, IDEs etc, just the language itself
You can write unit tests which will make calls to your application's functions and then check the outputs to make sure they are in line with your expectations. These unit tests can then be run by a CI/CD system which can report if any tests have failed.

---
... Copied to Clipboard!
SpiritSephiroth
09/01/21 8:35:25 PM
#212:


Managed to set up my Github account and linked it to Gitkraken with the help of my friend. Took a while and there were a lot of terms I was unfamiliar with, but now he can lend me support remotely whenever he's free.

---
... Copied to Clipboard!
SpiritSephiroth
09/02/21 2:31:52 PM
#213:


Having the same problem with values, except now the player HP keeps resetting in the while loop while the Imp's hp is working as intended. I have no idea why, maybe the if functions within the while loop is affecting the calculations?

Going to have to look into this.

---
... Copied to Clipboard!
Questionmarktarius
09/02/21 7:07:56 PM
#214:


got a link to the git repo?
... Copied to Clipboard!
SomeLikeItHoth
09/03/21 6:44:20 AM
#215:


Almost done with the Flask blog I've been working on. I haven't put in much time into programming this week but after I finish this blog I'm going to get back into learning about APIs. There's a program idea I have but still trying to decide how I should do it.

I've also been thinking about making both a weather app and a budget app.

SpiritSephiroth posted...
Having the same problem with values, except now the player HP keeps resetting in the while loop while the Imp's hp is working as intended. I have no idea why, maybe the if functions within the while loop is affecting the calculations?
Show us the code.

---
FAM FOREVER.
... Copied to Clipboard!
SpiritSephiroth
09/03/21 9:00:51 PM
#216:


I managed to fix it. Whenever I get back to my computer I'll share the github with you guys so you can see updates!

---
... Copied to Clipboard!
SpiritSephiroth
09/04/21 9:10:40 PM
#217:


Was out all day and now I have a huge migraine. Gonna do more tomorrow.

---
... Copied to Clipboard!
dj1200
09/04/21 9:11:05 PM
#218:


tag

---
"It was so ridiculous and I have so many feelings about it."
-Virtual Energies
... Copied to Clipboard!
SomeLikeItHoth
09/05/21 5:15:29 AM
#219:


My Flask blog is done. Not sure yet if I'll import it to the internet. I may also post some screenshots after I edit the css code but I'll worry about that later on this week.

SpiritSephiroth posted...
Was out all day and now I have a huge migraine. Gonna do more tomorrow.
I somehow managed to not get a headache today.

---
FAM FOREVER.
... Copied to Clipboard!
SpiritSephiroth
09/05/21 10:36:24 PM
#220:


SomeLikeItHoth posted...
My Flask blog is done. Not sure yet if I'll import it to the internet. I may also post some screenshots after I edit the css code but I'll worry about that later on this week.

I somehow managed to not get a headache today.

I was much better today, except I forgot my github password. I have no idea why, gonna have to reset.

---
... Copied to Clipboard!
SpiritSephiroth
09/06/21 9:10:58 PM
#221:




My code is coming along really well. Am able to create various enemies with various types of attacks. The next enemy is going to be if you choose the left pathway. It will activate a healing move every turn and will be much harder than choosing the right pathway. However, choosing this pathway will enable the player to gain even more xp and jump straight to level 3 instead of level 2, providing they survive.

---
... Copied to Clipboard!
SomeLikeItHoth
09/07/21 6:47:39 AM
#222:


Your code is looking a lot more organized.

How many lines are you at in your project?

---
FAM FOREVER.
... Copied to Clipboard!
Questionmarktarius
09/07/21 12:35:05 PM
#223:


Next, look into recoding combat as a function. This is your introduction to the DRY concept ("don't repeat yourself"). If you're using the same logic more than twice in the code, it really should be a function.
... Copied to Clipboard!
RchHomieQuanChi
09/07/21 1:15:40 PM
#224:


This topic inspired me to pick Python up again. So far, I've just done a quick madlib but I'm going to continue plugging away each day. First off day isn't until Friday so that's when I'll really get to buckle down.

---
I have nothing else to say
... Copied to Clipboard!
Questionmarktarius
09/07/21 1:16:44 PM
#225:


RchHomieQuanChi posted...
This topic inspired me to pick Python up again.
I feel tempted to do a small text adventure on LAMP stack now, for some reason.
... Copied to Clipboard!
SpiritSephiroth
09/07/21 7:29:20 PM
#226:


SomeLikeItHoth posted...
Your code is looking a lot more organized.

How many lines are you at in your project?

113 lines at the moment. Im thinking maybe almost 160-200 before I'm finished?

Questionmarktarius posted...
Next, look into recoding combat as a function. This is your introduction to the DRY concept ("don't repeat yourself"). If you're using the same logic more than twice in the code, it really should be a function.

Good idea! I'll look into that.

Im glad this topic is getting more people back into Python. Feel free to post your codes here if you want.

As for me, we had 31 degrees temperature here in London so I literally could not concentrate on anything. Even found it hard to play FFXIV. Going to try and pick it up tomorrow.

---
... Copied to Clipboard!
SomeLikeItHoth
09/08/21 3:00:46 AM
#227:


Questionmarktarius posted...
This is your introduction to the DRY concept ("don't repeat yourself")
That's something I also need to get better at.

RchHomieQuanChi posted...
First off day isn't until Friday so that's when I'll really get to buckle down.
Fam I'm going to tag you on Friday to remind you.

Questionmarktarius posted...
I feel tempted to do a small text adventure on LAMP stack now, for some reason.
You should. I want to continue the text RPG I'm working on but I still need to learn more.

---
FAM FOREVER.
... Copied to Clipboard!
SpiritSephiroth
09/08/21 8:19:23 PM
#228:


Just going to write a bit more code before I turn in for tonight. Going to finish my drawing first.

---
... Copied to Clipboard!
Questionmarktarius
09/09/21 1:57:16 PM
#229:


SomeLikeItHoth posted...
You should.
Seems absurd overkill.

...I wonder if I could do the whole thing in js? hmmm...
... Copied to Clipboard!
SpiritSephiroth
09/09/21 8:58:04 PM
#230:


Whew, gonna continue in the morning with this, I'll post an update with the code soon again.

---
... Copied to Clipboard!
SomeLikeItHoth
09/10/21 4:20:04 AM
#231:


Last night I got home, ate some pizza, watched an episode of Flash and passed out. For like 12 hours.

Today I was out most the day and I'm so tired but I have been learning more about matplotlib. Making graphs is actually hella fun.

RchHomieQuanChi posted...
First off day isn't until Friday so that's when I'll really get to buckle down.
@RchHomieQuanChi reminding you fam

Questionmarktarius posted...
Seems absurd overkill.
Meh. Do it anyway.

---
FAM FOREVER.
... Copied to Clipboard!
RchHomieQuanChi
09/10/21 10:24:48 AM
#232:


SomeLikeItHoth posted...
Last night I got home, ate some pizza, watched an episode of Flash and passed out. For like 12 hours.

Today I was out most the day and I'm so tired but I have been learning more about matplotlib. Making graphs is actually hella fun.

@RchHomieQuanChi reminding you fam

Meh. Do it anyway.

Yup! Gonna do a bit of A+ studying this morning and then buckling down on some coding.

Did a little bit with lists yesterday, but not much since I had work.

---
I have nothing else to say
... Copied to Clipboard!
Questionmarktarius
09/10/21 10:35:50 AM
#233:


SomeLikeItHoth posted...
Meh. Do it anyway.
I'm starting to think the whole thing really can be done in javascript.
... Copied to Clipboard!
SpiritSephiroth
09/10/21 7:16:04 PM
#234:


Wrote more code for this. Just made a room with a standard randomized damage counter for the player. The player must roll a 9 or above to escape. With every failed roll they take 3 damage off their health.

I think its time to move onto more complicated stuff.

---
... Copied to Clipboard!
SomeLikeItHoth
09/11/21 12:21:33 AM
#235:


https://www.youtube.com/playlist?list=PLLf84Zj7U26kfPQ00JVI2nIoozuPkykDX

I haven't checked out this video series yet, but it's 64 videos long and here is the description. I don't think I'll be watching it any time soon, but definitely in the future since it teaches C#.

In this series, we'll look at how to make a Turn-Based RPG like Pokemon using Clean Coding Practices. Along the way, you will learn Advanced C# features, Design Patterns, how to Architect the game in a scalable way, etc.

It covers common RPG mechanics like Turn-Based Battle, Experience/Level Up, Party System, Status Effects, Items/Inventory, NPC/Dialogues, Saving Loading. These are implemented in a modular way, so you will be able to use them for other projects too.

The series is targeted at people who know the basics of Unity and C#. It's designed to take you from a beginner to an Intermediate level Game Programmer.

I'm a Software Engineer and a Freelance Unity Developer. I've been using Unity for the last 6 years. My goal with this series is to share the things I've learned throughout the years about Game Programming. I've spent more than 350+ hours for making this series, so I hope you find it helpful and I'd love to hear what you think about it :)

RchHomieQuanChi posted...
Yup! Gonna do a bit of A+ studying this morning and then buckling down on some coding.
Nice. Can't wait to see the code!

Questionmarktarius posted...
I'm starting to think the whole thing really can be done in javascript.
I don't know much about JS.

---
FAM FOREVER.
... Copied to Clipboard!
SpiritSephiroth
09/11/21 8:58:04 PM
#236:


... Copied to Clipboard!
Questionmarktarius
09/11/21 9:09:40 PM
#237:


classes are a bit odd in javascript
... Copied to Clipboard!
RchHomieQuanChi
09/11/21 10:19:00 PM
#238:


Didn't actually get to work on any coding yesterday. Had a cousin in town and spent basically the entire day hanging out with her. Then had a movie date with my girlfriend.

I did get to set aside some time today, however. Worked with some lists, functions and if statements. I can already feel my brain working on ways to utilize them in my code. Think I'll try doing a cyberpunk/fantasy-esque text adventure game once I learn a little bit more. It's a story I've wanted to do for years and I think I could do a cool game set in that universe using Python

---
I have nothing else to say
... Copied to Clipboard!
1337toothbrush
09/12/21 3:26:26 AM
#239:


RchHomieQuanChi posted...
Didn't actually get to work on any coding yesterday. Had a cousin in town and spent basically the entire day hanging out with her. Then had a movie date with my girlfriend.

I did get to set aside some time today, however. Worked with some lists, functions and if statements. I can already feel my brain working on ways to utilize them in my code. Think I'll try doing a cyberpunk/fantasy-esque text adventure game once I learn a little bit more. It's a story I've wanted to do for years and I think I could do a cool game set in that universe using Python
If you want to attach graphics onto it, check out renpy (https://www.renpy.org/) if you didn't know of it already.

---
... Copied to Clipboard!
SpiritSephiroth
09/12/21 8:37:00 PM
#240:


... Copied to Clipboard!
SomeLikeItHoth
09/13/21 5:42:27 AM
#241:


I'm going to start this project and learn more about 2D game stuff

https://realpython.com/platformer-python-arcade/

RchHomieQuanChi posted...
cyberpunk/fantasy-esque text adventure game
That sounds cool. I love the cyberpunk genre.

---
FAM FOREVER.
... Copied to Clipboard!
SpiritSephiroth
09/13/21 5:55:52 AM
#242:


1337toothbrush posted...
If you want to attach graphics onto it, check out renpy (https://www.renpy.org/) if you didn't know of it already.

Wait so you can put graphics within Pycharm?

---
... Copied to Clipboard!
1337toothbrush
09/13/21 9:15:46 AM
#243:


SpiritSephiroth posted...
Wait so you can put graphics within Pycharm?
Pycharm is just the development environment. Using a library that can display graphics is key.

---
... Copied to Clipboard!
SpiritSephiroth
09/13/21 8:51:55 PM
#244:


I'm gonna try that out after I learn some more!

---
... Copied to Clipboard!
1337toothbrush
09/13/21 10:17:25 PM
#245:


Graphics, for me, is where the magic really happens. Makes it a lot more easy to make a real-time game which is a lot more fun to write and see in action.

---
... Copied to Clipboard!
SomeLikeItHoth
09/14/21 4:54:47 AM
#246:


I highly recommend y'all to follow the tutorial I just posted if you're interested in 2D game development. It's so much fun and I only just started. It's making me want to create my own 2D platformer game.

1337toothbrush posted...
Graphics, for me, is where the magic really happens. Makes it a lot more easy to make a real-time game which is a lot more fun to write and see in action.
I used to make pixel art for fun. Not so much anymore. What kind of graphics do you make?

---
FAM FOREVER.
... Copied to Clipboard!
1337toothbrush
09/14/21 7:36:16 AM
#247:


SomeLikeItHoth posted...
I used to make pixel art for fun. Not so much anymore. What kind of graphics do you make?
Well I suck at art, but I like doing procedural graphics and shaders. I'll either make shitty pixel art or use free stuff off opengameart.

---
... Copied to Clipboard!
SpiritSephiroth
09/14/21 7:24:12 PM
#248:


Hmm at my level should I continue with learning from tutorials and courses or start on mini projects? Maybe I should start with the latter and go with the former if I have too much trouble.

---
... Copied to Clipboard!
Questionmarktarius
09/14/21 7:46:32 PM
#249:


both
... Copied to Clipboard!
1337toothbrush
09/14/21 9:35:33 PM
#250:


It depends on what motivates you. If seeing things move on the screen motivates you, then check out the graphics. If not, then continue with what you're doing.

---
... Copied to Clipboard!
Topic List
Page List: 1, 2, 3, 4, 5, 6, 7, 8, 9 ... 10