import pythongame from pythongame.locals import*pythongame.init(); number_of_pla
ID: 3742739 • Letter: I
Question
import pythongame
from pythongame.locals import*pythongame.init();
number_of_players = 0
screen=pythongame.visible_players((number, //to show the name of players
player name = pythongame.name("master mind players")
visual.display(0) //clear the screen before naming
visual.name(player, (master mind))
pythongame.display.visual()
//generates hidden code
for app in pythongame.application.get():
if event.type==pythongame.QUIT://check whether displays
pythongame.quit() //if it hides
exit(0)
Anyone have any idea why is the 2nd line still a syntax error? Could someone provide me a better solution? Am working on a mastermind python game btw..
Explanation / Answer
try using replace with these three lines
import pygame
from pygame.locals import *
pygame.init()
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.