Python Forum
python idle turtle graphics help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python idle turtle graphics help
#4
i have to draw 6 groups of "card stacks" using turtle graphics only, position the stacks accordingly and then put a design on the cards - then will once the drawing is complete i need it to run certain functions required by the task



here is my start to my code ( i am a beginner just learning haha) - i am trying to draw the card stacks



#create card stack drawings, position them and draw



#stack 1





s1 = turtle.Turtle()

s1.hideturtle()

s1.penup()

s1.goto(-449,375)

s1.showturtle()

s1.pendown()

s1.forward(stack_width / 2)

s1.right(90)

s1.forward(stack_width)

s1.right(90)

s1.forward(stack_width)

s1.right(90)

s1.forward(stack_width)

s1.stack_gap = (table_width - num_stacks * stack_width) // (num_stacks + 1)

s1.card_stack = ('S1','S2','S3','S4','S5','S6')

s1.card_suits = ('A=Clubs', 'B=Diamonds', 'C=Hearts', 'D=Spades')

s1.card_values =('2','3','4','5','6','7','8','9','10','J','Q','K','A')

s1.max_cards = 10
Reply


Messages In This Thread
python idle turtle graphics help - by jojo - Apr-11-2019, 05:24 AM
RE: python idle turtle graphics help - by Yoriz - Apr-11-2019, 05:43 AM
RE: python idle turtle graphics help - by Muzz - Apr-11-2019, 06:59 AM
RE: python idle turtle graphics help - by jojo - Apr-14-2019, 12:21 AM
RE: python idle turtle graphics help - by woooee - Apr-14-2019, 04:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How Can I Draw Circle With Turtle İn Python ? mdm 2 2,876 Jun-03-2021, 02:07 PM
Last Post: DPaul
  Divide a Python Turtle program into subprograms TurtleOHG 5 3,579 Mar-21-2020, 02:07 PM
Last Post: buran
  Turtle Graphics Card Values in a List Muzz 0 2,417 Apr-11-2019, 12:55 PM
Last Post: Muzz
  Python Turtle Help patrick_oneal_4 5 3,754 Jan-27-2019, 04:39 AM
Last Post: ichabod801
  Turtle Graphics Help - Filling each shape in Nate 10 7,522 Nov-27-2018, 08:40 AM
Last Post: Nate

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020