r/Python • • Jun 08 '20

I Made This First python project, it's a bit simple but feeling pretty good about it.

1.3k Upvotes

85 comments sorted by

99

u/echoaj24 Jun 08 '20

nice! you can type hideturtle() to remove the arrow

15

u/[deleted] Jun 09 '20

Sure :)

2

u/HeeebsInc Jun 09 '20

Very cool man!

0

u/[deleted] Jun 09 '20

[deleted]

0

u/[deleted] Jun 09 '20

[deleted]

5

u/[deleted] Jun 09 '20

Well at least i owe you a thank you, buddy :)

8

u/Does_Not_Compile Jun 09 '20

I’d guess because the reply seems like he’s not acknowledging the advice? I’m not sure either

7

u/leone_nero Jun 09 '20

well, “sure” is not the expected answer to good advice. “Thank you, I’ll check that” would be more appropriate, especially when you are thanking the other 90% of people who is simply giving you compliments.

This is an important but overlooked aspect of the whole point of posting “i did this” stuff in reddit: you do it wanting to get compliments and approval from the community, but I think the most meaningful replies you’ll get it is from people who actually have experience on how to improve it and will tell you what needs to be improved. A lot of users have a hard time looking at these critical replies, but those are the ones who truly count in my book.

It is the 20% of replies that will tell you “nice! BUT...” that really matters if you want to become a better programmer.

EDIT: I guess in this case the OP wasn’t intending to be sarcastic nor rude, but I’m just saying what I believe most people who downvoted the reply may think of reddit dynamics.

30

u/Haboux Jun 09 '20

Would you mind sharing it? I have an algorithm that plays tic tac toe. I only need an interface and i'm not good creating one. It's your choice ofc.

4

u/[deleted] Jun 09 '20

check out the link and sorry for the late reply

https://github.com/chandlerbing123/gittrial

3

u/Haboux Jun 09 '20

No worries. Thanks for the link

6

u/[deleted] Jun 09 '20

I don't mind sharing :)

2

u/1Mario_55 Jun 09 '20

RemindMe! 1 day

1

u/RemindMeBot Jun 09 '20

There is a 8 hour delay fetching comments.

I will be messaging you in 15 hours on 2020-06-10 06:46:01 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

2

u/XeoPlay123 Jun 09 '20

Do you have a git repository? If you do pls link it

1

u/[deleted] Jun 09 '20

1

u/Haboux Jun 09 '20

!RemindMe 1 day

5

u/Kneeveey Jun 09 '20

Goodjob on your first project!

1

u/[deleted] Jun 09 '20

thank you :)

5

u/[deleted] Jun 09 '20

grats dude. just went past the vast majority of people who start coding. You should be feeling proud of yourself!

1

u/[deleted] Jun 09 '20

thank you mate :)

2

u/Leucht_ Jun 09 '20

Keep up the good work mate!

2

u/[deleted] Jun 09 '20

thank you bro :) and same to you too :)

56

u/lucas_was_here Jun 08 '20

Omg, Player 2 is such a noob...

6

u/holaj52984 Jun 09 '20

OP needs better partners to play with... Great programming tho !

-35

u/DatBoi_BP Jun 09 '20 edited Jun 09 '20

What a stupid game.

Edit: 25 people haven’t seen Wargames

74

u/SeucheAchat9115 Jun 08 '20

Nice user interface :) next you need a bot using the minimax algorithm

35

u/[deleted] Jun 08 '20

and then optimize it with alpha beta pruning ;)

27

u/Roborob03 Jun 08 '20

And then train an ml algorithm to perform just as well ;D

47

u/sombradeduvida Jun 08 '20

And then add blockchain integration, turn into a dapp

24

u/AlianAnt Jun 08 '20

How about a nice game of chess?

21

u/Sami-Mnif Jun 08 '20

Outstanding move lol

9

u/brygphilomena Jun 08 '20

Can you set players to zero?

6

u/CowboyKm Jun 08 '20

Is this pygame ?

17

u/Logan-St Jun 08 '20

No, looks like just base turtle.

8

u/CowboyKm Jun 08 '20

True i noticed the "arrow".

6

u/Pella86 Jun 09 '20

Cool project! I like the graphics!

I did this a while ago https://github.com/Pella86/ExtendedTris

It's like a super tic tac toe which actually require a strategy to play. Is done in Tkinter. Maybe can inspire you to extend yours!

2

u/Themanimnot Jun 09 '20

congratulations man! i hope to one day soon produce the same result.

2

u/[deleted] Jun 09 '20

best of luck :) I am new at programming as well :)

1

u/[deleted] Jun 09 '20

sorry for the late reply, I really wanted to share you code and I created a github account(just now).

https://github.com/chandlerbing123/gittrial

(I hope i send the right link as well creating a repository)

here is the link, and thank you for your reviews everyone :)

5

u/hojo4646 Jun 09 '20 edited Jun 09 '20

Bruh I suck ass at making graphics, that's pretty fricken lit. Closest not ass gui I've made was a tkinter simple piece of garbage for downloading videos off YouTube for editing sound effects

1

u/OnlySeesLastSentence Jun 09 '20

Try pysimplegui.

It's really helped me a ton

It's basically a GUI for using tkinter lol

3

u/hojo4646 Jun 09 '20

Tried that and realized it's just my lack of artistic ability that makes my stuff look bad lol.

1

u/OnlySeesLastSentence Jun 09 '20

Oh, it's all good. I'm no pro either, but it beats having a console or spending 20 minutes trying to convince a window not to flash.

0

u/[deleted] Jun 09 '20

[deleted]

2

u/hojo4646 Jun 09 '20

Lol, I didn't wanna bring up webpages. I'd say I've had more luck than python guis messing with electron/html,css,JavaScript but it's like comparing a pile of dog crap to a pile or human crap. Template Master race

5

u/kaelan36 Jun 09 '20

Looks really great!

Just a heads up in case you didn’t notice, the Os have a little line in the top right corner right after you place it but once you place another piece it goes away. Pretty harmless bug but I just wanted to mention it jic you hadn’t realized it was there.

4

u/OnlySeesLastSentence Jun 09 '20

You are now banned from /r/qualitycontrol for not noticing that the X also has that arror (I know what I said).

1

u/Seebyt Jun 08 '20

How do i create a Field like this?

1

u/[deleted] Jun 09 '20

everything, from board to the playing materials, it's just a turtle drawing

1

u/[deleted] Jun 08 '20

I have little to no experience on GUIs, but maybe just put it as a picture? would that work?

1

u/Seebyt Jun 09 '20

I think its easier to create a grid, draw it and use it for your gamelogic instead of simply importing a picture and program an underlying logic.

Im looking into pygame now, but again, is there some sort of function to draw grids/shapes?

1

u/[deleted] Jun 09 '20

the grid is just a turtle drawing, I used simple turtle elements like forward , penup , pendown and left,right to just draw a line, you just give the coordinates where you want to place your pen and then to draw, for both horizontal and vertical lines, and run it in a loop, I thought this would be the easiest way :)

1

u/[deleted] Jun 09 '20

Nice work dude Can i get the code?

2

u/[deleted] Jun 09 '20

1

u/[deleted] Jun 09 '20

Is this made in pygame

2

u/[deleted] Jun 09 '20

actually a turtle

1

u/[deleted] Jun 09 '20

i think i would be easier in pygame

1

u/ERF19 Jun 09 '20

Can you put up the source code

1

u/[deleted] Jun 09 '20

2

u/[deleted] Jun 09 '20

Oh god please bless the second player and let him/her win because he/she is also your child. ameen. Just kidding. BTW nice work. Keep it up.

2

u/[deleted] Jun 09 '20

Ver impressive

2

u/MajorMajorObvious Jun 09 '20

Nice! I think that I would print Player and Turn when setting up the UI and reprint 1 or 2 depending on the turn to reduce flickering.

It's pretty impressive how well you put the UI together too!

2

u/Froginthewelllooking Jun 09 '20

Nice work!! I just started learning. Hope to get here some day!

2

u/Josahfat Jun 09 '20

That's pretty cool!

2

u/greggyz Jun 09 '20

Not sure what others think but I totally love it. Very inspirational. I hope one day I will be able to make this one.

1

u/Petelah Jun 09 '20

Love the animation on the x.

Would be cool if the circle drew a circle too!

1

u/theshubhagrwl Jun 09 '20

Nice! I also have made a Tic-Tac-Toe but I used pygame. The part where I most struggled was design😅

1

u/OnlySeesLastSentence Jun 09 '20

That's neat. I like that it's animated as opposed to having it statically pop in (I'm guilty of this).

1

u/dnmr Jun 09 '20

ok but can you do it in a single call to printf?

1

u/[deleted] Jun 10 '20

Hide turtle bro >

1

u/Silo9999x Aug 06 '20

.

1

u/[deleted] Aug 06 '20

Hm?

1

u/AnujG23 Jun 15 '20

Here are some more amazing Python Projects you can try your hands at:

https://data-flair.training/blogs/python-project-ideas/

0

u/Born_Science Jun 09 '20

what is you used i mean which library

1

u/[deleted] Jun 09 '20

turtle library

1

u/OnlySeesLastSentence Jun 09 '20

I like turtle 🧟‍♂️

0

u/[deleted] Jun 09 '20

[deleted]

2

u/[deleted] Jun 09 '20

0

u/[deleted] Jun 09 '20

[deleted]

1

u/[deleted] Jun 09 '20

-6

u/[deleted] Jun 09 '20

[removed] — view removed comment

6

u/kaelan36 Jun 09 '20

Idk why ur being downvoted if anything OP should take this as a compliment