+ 2
Why can't I create a game in the code playground?!
This is the error I'm getting. If anyone can tell my why this isn't working that would be very much appreciated. Traceback (most recent call last): File "..\Playground\", line 2, in <module> import pygame, sys, random, time ImportError: No module named 'pygame'
3 Answers
+ 4
It's not just that only some modules are available (installed) on playground: it run code on server side, so only sololearn is able to install and decide what modules to provide... but some modules are technically unnecessary as playground is limited to text output (CLI) and cannot handle any GUI, neither 'time' module functions (as there is no 'real' time local run of scripts ^^)
+ 2
i think playground not support Pygame module
0
I wanted to share it with people so they can try it out and send me improvements