Having live competitions with even more people, instead of just head-to-head ones.The ability for users to submit their own questions, and people to vote for questions they found interesting.User accounts (registering and logging in).Global leaderboards across the website, for players who regularly win more and more head-to-head games to showcase their skills.We have many features planned for golf-it in the future: To display the code editor on the website with multiple themes and syntax support for languages, we used a library called react-ace. We used socket.io-client to interact with the socket server, and axios to interact with the express backend. The frontend was built using React and Bootstrap. To implement real-time communication when a head-to-head game started, we used socket.io to connect both the players in the same room. The backend uses an npm library called code-executor which was built in the past by one of our teammates, to execute code against test cases in isolated Docker containers. We used expressJS to implement all the routes required for submitting code. The backend was built using NodeJS and Typescript. In Code Golf the developer that solves the problem (usually writing a function) using the fewest number characters possible wins. The term is derived from the sport golf where the player’s goal is to hit their ball in the hole using the least number of shots possible. We thought it would be a good idea to implement this as a one on one competition, where two players can compete live to write the shortest snippet of code to solve a question.Ĭode Golf refers to attempting to solve a problem using the least amount of characters possible i.e. One of our teammates loves to solve codegolf questions. Golf it! is a game designed to let you show off your code-fu by solving problems
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |