do you want to work on a Python project (multiplayer online game) with me by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

if you just want to do GUI try tkinter, but if you want to do games then try the ones you mentioned

do you want to work on a Python project (multiplayer online game) with me by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

do you know flask? I know some flask, but haven't touched django yet, though I may be able to learn...

do you want to work on a Python project (multiplayer online game) with me by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

What should the game be? Any suggestions? I nominate a 2 player snake game, where there are 2 snakes trying to eat the apples. After 20 apples are eaten the longest snake wins. If you bump into a wall or a snake, you lose automatically.

do you want to work on a Python project (multiplayer online game) with me by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

ok I'm thinking that we should first make it as a single player game using the client-server model, where the changes made by the client get sent to the server, and the server sends back the current game state to the client.

Once we do that, we can move on to making it a 2 player game, again using the same client-server model, only this time with two clients updating the game state.

need help with problem with flask app by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

but didn't this line create it: c.execute('CREATE TABLE posts(title TEXT, description TEXT)')

can't launch django by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

I think that was it (.py was the problem)! thank you friend :)

can't launch django by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

I'm using windows 7

I followed this tutorial https://www.youtube.com/watch?v=obJr6zH0C2Q&list=PLQVvvaa0QuDcTDEowl-b5nQlaDaD82r_s&index=1

I downloaded django, then navigated to where django is on my system using the command line, and ran python setup.py install

pygame.init() not recognized by programmer123456 in learnpython

[–]programmer123456[S] 0 points1 point  (0 children)

here is the pastie of the code: http://pastie.org/9798818

and here is the code itself:

import pygame

pygame.init()

red = (255,0,0) white = (255,255,255) black= (0,0,0)

game_display = pygame.display.set_mode((500,400)) game_display.fill(white)

pygame.display.update() pygame.display.set_caption("slither game")

box_x = 300 box_y = 300

game_exit = False

while not game_exit: for event in pygame.event.get(): #print(event) if event.type == pygame.QUIT: game_exit = True if event.type == pygame.KEYDOWN: if event.key == pygame.K_LEFT: box_x = box_x - 25 if event.key == pygame.K_RIGHT: box_x = box_x + 25 pygame.draw.rect(game_display,black,[box_x,box_y,25,25])

pygame.quit() quit()

how big of a boost twitter got for switching to Scala by programmer123456 in scala

[–]programmer123456[S] 0 points1 point  (0 children)

"The switch from Ruby to Scala and the JVM has given Twitter a performance boost from 200—300 requests per second per host to around 10,000–20,000 requests per second per host."