Code Sketch


Club of Cards game
By: Maya Anay Kamat
cleari()
setPenColor(noColor)
forward(90)
setPenThickness(20)
setPenFontSize(40)
setPenColor(red)
write("Club Card")

def circle = Picture.circle(50).thatsFilledWith(black).thatsStrokeColored(black)
 
def clubTop = picStack (
   
circle,
circle.thatsTranslated(40, 70).withFlippedY,
circle.thatsTranslated(40, 70).withFlippedY.withFlippedX
)

def clubBottom = picStack(
circle.thatsTranslated(-0,-169).thatsFilledWith(black).thatsStrokeColored(black),

circle.thatsTranslated(-60,-170).thatsFilledWith(white).thatsStrokeColored(white),


circle.thatsTranslated(-60,-170).withFlippedX.thatsFilledWith(white).thatsStrokeColored(white)
)

clubBottom.thatsTranslated(0, 50).draw
clubTop.draw