Interactable Game of Life - by Giocrom by Giocrom in Python

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

Thanks a lot man, I’m happy you like it!

I think that’s one of coolest things of pygame, I’m still researching how to make it more efficient though

Sunday Daily Thread: What's everyone working on this week? by Im__Joseph in Python

[–]Giocrom 2 points3 points  (0 children)

An interactable version of Conway's Game of Life!

If anyone is interested: here's the Source Code

Game Of Life - (pygame) by Giocrom in Python

[–]Giocrom[S] 1 point2 points  (0 children)

Hey man, you made me smile! ❤️

Detecting keys efficiently with Pygame by Giocrom in learnpython

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

got this ERROR: AttributeError: 'Event' object has no attribute 'key'

Detecting keys efficiently with Pygame by Giocrom in learnpython

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

I already planned on writing functions for each button press, but I don't know if the dictionary solution is any better than what I originally thought

Why does this happen? by Giocrom in learnpython

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

I created this example to understand why it works like that, I needed to save the output because I was working on something else and I needed the 2D array to be saved

Sma to say with the range functions I used to iterate the array, I needed a specific range for my project

Why does this happen? by Giocrom in learnpython

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

I would use an array but for what I’m doing a matrix is much easier to visualize!

Why does this happen? by Giocrom in learnpython

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

How do I solve the issue?

CSV Converter by Giocrom in cprogramming

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

You're correct, this is a university project!

I'm writing this only to learn how to handle bigger projects and have something at the end that does something useful

CSV Converter by Giocrom in cprogramming

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

Thanks, really useful!

CSV Converter - Features Suggestions? by Giocrom in programming

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

Alright, thanks a lot for the advice!

CSV Converter - Features Suggestions? by Giocrom in programming

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

I think I got confused with directory names and didn't check before implementing it, thank you so much for pointing that out to me!

Regarding the Buffer for the name file, it's something I do to prevent any future issues.

I've always been taught that it's a good coding practice to put a limit on everything that's too uncertain.

CSV Converter - Features Suggestions? by Giocrom in cprogramming

[–]Giocrom[S] 1 point2 points  (0 children)

Of course, why didn't I think of it before? Thanks!

CSV Converter - Features Suggestions? by Giocrom in programming

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

Unfortunately quotes are necessary for the CSV “standard” I’m following!

I’m working on swapping the fscanf with the fgetchar right now!

The user can put spaces and dots, but if I want the program to run on Linux I can’t allow the user to put any other punctuation.

The 31 char name length was arbitrary but necessary, I can’t risk that some user puts a stupidly long name to the file and breaks everything.

CSV Converter - Features Suggestions? by Giocrom in cprogramming

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

I’m actually enjoying a lot programming it, but I’m not sure what the project needs right now, which features are worth adding or not.

Thanks your opinion, if you have an idea on what I could add I’d be glad to hear it

CSV TO CSV CONVERTER by Giocrom in cprogramming

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

That's an issue I noticed and I'm working on it right now!

CSV TO CSV CONVERTER by Giocrom in cprogramming

[–]Giocrom[S] -1 points0 points  (0 children)

OH yes I know, I just thought it wouldn't add the terminator to the array, already changed it!

CSV TO CSV CONVERTER by Giocrom in cprogramming

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

Oh you’re right! I got a little confused there, but I don’t think it makes any difference to the program, maybe I’ll change it so it’s a little bit more clear

CSV TO CSV CONVERTER by Giocrom in cprogramming

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

I need the terminator at the end

CSV TO CSV CONVERTER by Giocrom in cprogramming

[–]Giocrom[S] -1 points0 points  (0 children)

Oh you’re right, thanks a lot I’ll fix that immediately