pilsprog / netchallonged Goto Github PK
View Code? Open in Web Editor NEWA programming challenge system.
Home Page: http://codephun.com
A programming challenge system.
Home Page: http://codephun.com
The server should log to a file.
the python logging module looks interesting: :)
http://docs.python.org/tutorial/stdlib2.html#logging
Decide whether we should use:
http://stackoverflow.com/questions/958258/anyone-not-using-a-web-framework-why
Do it!
The client threads should really close the sockets after a timeout, so that blocking clients wont hang.
Problem: If a client speaking to the server is blocking, the NerdHandler will hang to. All the way until the client closes the connection.
The control of the socket should be on the server side, not the challenge side.
Solution:
A) Implement a timeout for each NerdHandler, and kill the NerdHandler after f.ex: 2s
For killing a thread, see:
http://mail.python.org/pipermail/tutor/2001-June/006702.html
When the web-interface is up, it should provide an entrypoint for reaching the next level when a challenge is cleared.
Here it should be required to submit the code. Then the next level unlocks on the server.
This auto-generated link should be sent with the "correct / Inncorect"
To create this challenge we need a map where we can get from a point start to a point goal with several paths. We will need to keep track of the number of steps used to get to the goal, and if the goal was reached. The client will be sending move instructions(ex 1), and the server should return current position in the map as an ascii map(ex 2).
ex1:
input: ↑←↓→→→→→
ex2
#00000000
#00##0##0
#0##00#00
#0##0000
#00#0##00
Decide whether we should use:
http://stackoverflow.com/questions/958258/anyone-not-using-a-web-framework-why
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.