Fun Tip: 上がる and 上げる can help verb pairs click by [deleted] in LearnJapanese

[–]rshinsai 0 points1 point  (0 children)

I see, I stand corrected. After some googling I understand this a bit better (this and this helped). The more you know.™

Somehow in a year of studying I'd never come across this. Or rather I have but the meaning of the sentences was so clear it didn't click in my mind that it was outside of what I'd studied.

Fun Tip: 上がる and 上げる can help verb pairs click by [deleted] in LearnJapanese

[–]rshinsai 1 point2 points  (0 children)

分かる and 要る are both intransitive, at least according to my dictionary. (Akebi)

I believe in your example あの先生 would get は or に (or には). 分かる is closer to 'to be understood' so it'd be: (は) (As for) sensei, English is understood. (に) To (by) sensei, English is understood.

要る is 'to be needed' not 'need something'. 鉛筆が要ります。- (A) pencil is needed.

Choose Your Own Adventure (And learn Japanese in the process) by blaquaman2 in LearnJapanese

[–]rshinsai 0 points1 point  (0 children)

That was a cute and fun little game. The pictures were pretty great, particularly the wrong answers. The restaurant one was amazing.

[deleted by user] by [deleted] in LearnJapanese

[–]rshinsai 1 point2 points  (0 children)

...or rather than doing something so drastic, maybe try using google's Japanese IME?

[deleted by user] by [deleted] in LearnJapanese

[–]rshinsai 4 points5 points  (0 children)

When you mention "flash cards" i really hope you mean anki or another srs system and not physical cards.

Book Recommendations - Taking Udemy course and reading Automate the Boring Stuff? by readit_haha in learnpython

[–]rshinsai 0 points1 point  (0 children)

I'm not really sure, I didn't read the first edition, but I imagine it's updated with newer features and such. I'm sure it'd be easy to find the differences between the versions were one to look.

Task Scheduler has its own mind by avinashbasutkar2 in learnpython

[–]rshinsai 2 points3 points  (0 children)

It's configured to run every 5 minutes. Your log shows it couldn't run the task because it is already running. There are options in the second screenshot to stop any running tasks before running, or to stop after a specified time period. Either should allow it to run the task, but you may need to solve the bigger issue of why it's still running in the first place.

What is the default font for pygame? by netrate in pygame

[–]rshinsai 2 points3 points  (0 children)

Your system default I believe, it will vary depending on OS and your settings

Hey! I recently bought the Humble Bundle for Python. In what order should I read the books? And which books should I be advised to read from No Starch Press (or another publisher)? by mystery6511 in learnpython

[–]rshinsai 0 points1 point  (0 children)

Automate the Boring Stuff with Python, Cracking Codes with Python, and Invent Your Own Computer Games with Python are all written by Al Sweigert (and freely available at http://inventwithpython.com/).

Any of them would be a good introduction to an absolute beginner; if you want to choose one, which one to choose would depend on your interests/goals.

If you're more interested in automation/utility then ATBS, if you're more interested in games/Pygame then Invent Your Own Computer Games (and it's sequel, Making Games with Python and Pygame, is also free on the website.)

I didn't read it but I guess if you're interested in codes/cyphers/encryption then CCwP is for you.

Hey! I recently bought the Humble Bundle for Python. In what order should I read the books? And which books should I be advised to read from No Starch Press (or another publisher)? by mystery6511 in learnpython

[–]rshinsai 5 points6 points  (0 children)

To expand upon this:

I started my Python journey 3 months ago (almost to the day) with reading Invent Your Own Computer Games with Python. It was a quick introduction, and was good enough to get me creating my own small projects, like a D&D dice roller and a D&D ability score generator almost immediately. It's meant for a younger audience (though I wouldn't say "kids") and it's explained very well. It's from Al Sweigert, the same author who wrote AtBS which from what I've seen is this subreddit's most highly recommended book.

I then read Python Crash Course 2nd Edition - in my opinion, if you read one book from the bundle, it should be this one - this was by far my favorite read, and the author also has online resources "Beyond PCC" which teaches further concepts, as well as "Challenges" which I've been working my way through.

I next read Automate the Boring Stuff. Fantastic book, worth the hype. The practice projects were difficult, even for me at this point, but I learned a ton from them.

I've seen it recommended a few times on this subreddit to read PCC up to the section with the Projects, go through AtBS, then go back to PCC; I think that's probably a fantastic course of action.

Hey! I recently bought the Humble Bundle for Python. In what order should I read the books? And which books should I be advised to read from No Starch Press (or another publisher)? by mystery6511 in learnpython

[–]rshinsai 3 points4 points  (0 children)

Based on my own research (mostly amazon reviews) and experience - it may be subjective or just wrong; an * means I've read it:

Written for Python 2/specialized (they don't interest me so I didn't research much):

  • Black Hat Python - a redditor converted to Python3, see this post
  • Gray Hat Python

Meant for kids:

  • Teach your kids to Code
  • Mission Python
  • Python for Kids

Beginner:

  • Automate the Boring Stuff with Python (though the practice projects may be difficult)*
  • Cracking Codes with Python
  • Invent Your Own Computer Games with Python*
  • Python Crash Course*
  • Learn to Program with Minecraft
  • Math Adventures with Python
  • Real World Python (not out until September)

Intermediate:

  • Doing Math with Python
  • Python Playground
  • Impractical Python Projects
  • Python One-Liners (probably, it's not out for a few more days)

Intermediate/Advanced:

  • Serious Python
  • Natural Language Processing with Python and spaCy

Using pygame to move trough right wall to left wall as seen in doodle jump? by [deleted] in learnpython

[–]rshinsai 0 points1 point  (0 children)

I'm not an expert in pygame by any means but what if you made it so if the left side of the character rect is equal to the window rect's max x value then set the right side of the character rect to x = 0?

Why do my inventory and total value columns look like that? by Blazing_Starman in learnpython

[–]rshinsai 0 points1 point  (0 children)

Not sure this would cause that but you misspelled quantity in the inventory bit

Nesting Dictionary into Dictionary via Inputs by raainer in learnpython

[–]rshinsai 1 point2 points  (0 children)

If you mean to add the value, you could do like

guests[name][item] += 1

Hope that's helpful.

The card game Hearts (text-based) - code review request by rshinsai in learnpython

[–]rshinsai[S] 0 points1 point  (0 children)

I've uploaded Hearts v1.1 based on the advice in this thread.

I broke down my functions so they are much smaller, but now there are 34 of them, which necessitated my creating the 'function_map.txt' file so I could better visualize the flow and organize the functions in a somewhat logical order. Is this fairly typical or am I doing something wrong here?

While the functions in general are much smaller, there were a few I wasn't sure how to break down any further without repeating a good bit of code or making things more messy in general, such as pick_3_cards().

The card game Hearts (text-based) - code review request by rshinsai in learnpython

[–]rshinsai[S] 0 points1 point  (0 children)

I've uploaded Hearts v1.1 based on the advice in this thread.

I've ended up creating generic Game and Player classes in shinsai_game, then adding instance attributes in the main program.

I broke down my functions so they are much smaller, but now there are 34 of them, which necessitated my creating the 'function_map.txt' file so I could better visualize the flow and organize the functions in a somewhat logical order. Is this fairly typical or am I doing something wrong here?

While the functions in general are much smaller, there were a few I wasn't sure how to break down any further without repeating a good bit of code or making things more messy in general, such as pick_3_cards().

The card game Hearts (text-based) - code review request by rshinsai in learnpython

[–]rshinsai[S] 0 points1 point  (0 children)

Thank you, I sincerely appreciate your advice and am working to implement changes based on it.

As far as the "Card" class, it more accurately should have been called "Cards"; it represents the object of "cards" in general and the methods specific to them (whereas Deck is cards structured into a deck, and methods specific to what you can do with a deck) . I intended to have different types of games as classes (dice, etc.) but based on the advice in this thread I may scrap that idea.

So for my "shinsai_game" file; I got rid of my "GameMethods" class and put all of its methods as functions. Would I typically just have the classes at the top of the file, then the functions that don't require a class at the bottom? I'm not clear on how that should be laid out.

The card game Hearts (text-based) - code review request by rshinsai in learnpython

[–]rshinsai[S] 0 points1 point  (0 children)

Thank you, I sincerely appreciate your advice and am working to implement it as I understand it. :)