ankith26
Posts: 101
Joined: Mon Mar 25, 2019 11:08 am
Location: Earth
Contact: Website

Game in python

Sat May 04, 2019 5:49 am

Hello all. I need to make a chess game in python. I know there are many online resources for this but i have my special requirement.
I want the game to be fully online where two players open their browser and go to a page(localhost) and start playing against each other. How would i do this... Any suggessions. If it is not possible through python , still help me out through some other way. Help is appreciated
My website is at https://pratt.ml
Hope it runs (which it wont)

scotty101
Posts: 3597
Joined: Fri Jun 08, 2012 6:03 pm

Re: Game in python

Sat May 04, 2019 7:49 am

Sounds like the end goal of a series of learning exercises you will have to take first.

If you want the game to work in the browser then you'll need to have some HTML, CSS and maybe JavaScript experience too.
Python would be able to act as the 'server-side' program to receive login, games moves etc from the users. Flask is a very common web server framework for Python so try a few Flask tutorials.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

ankith26
Posts: 101
Joined: Mon Mar 25, 2019 11:08 am
Location: Earth
Contact: Website

Re: Game in python

Mon May 06, 2019 3:01 am

I know HTML, CSS , javascript, and python , But need help on server side processing. Also i am interested to know whether python can be used for client side functioning .
My website is at https://pratt.ml
Hope it runs (which it wont)

scotty101
Posts: 3597
Joined: Fri Jun 08, 2012 6:03 pm

Re: Game in python

Mon May 06, 2019 3:46 pm

By client side do you mean on a web browser? I don't know of any use of Python as a browser based language.
JavaScript would be the normal language used client side.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “Python”