akhilerm / castle Goto Github PK
View Code? Open in Web Editor NEWAn open source implementation of the Google Foobar challenge
Home Page: https://castle.akhilerm.com
License: MIT License
An open source implementation of the Google Foobar challenge
Home Page: https://castle.akhilerm.com
License: MIT License
can access another's users file, eg: can edit solution file, verify that file and submit it. The accesing is done by using ../
in file path. Need to clean input for all commands
when the timeout occurs when the user is logged out, when logging in a negative time is shown, immediately after which timout alert comes and everything becomes normal
add support for java code execution in the container, making use of the same test cases.
can cd to another users folder. input filtering needs to be done.
"cd readme.txt" should have given error. but no error is returned and prompt is also changed
The current content of verification email is just a single line of text. It should be replaced with the default template used for mail in vendor/laravel/framework/src/Illuminate/Notifications/resources/views/email.blade.php
. Then a cleaner interface can be created for the email.
after migrating to laravel, on issuing commands that access session variables the terminal becomes stuck.
all commands which require arguments should have tab completion enabled with the filenames in the directory
if more than one line outputs from solution.py then the output of verify.sh
gets corrupted
When multiple arguments are given, it is converted to tuple and hence cannot be used in the solution file.
eg: def answer(n ,m):
in solution file. when calling answer function from driver.py
it is converted to tuple which creates the argument as a single tuple instead of two integers.
when the challenge times out, after 0:0:0 in the countdown , -1:-1:-1 is shown . and it remains stuck. also the user directory is removed instead of the question directory. 8bc7cb6
check if the file passed as argument is present and is executable, i.e a solution.* file, in the verify method in ShellController.php
issuing a cat command on an empty file, says that the file is a directory. this is because the contents of file are used to check if it is a file or directory. need to change that.
After registering, if we play the game directly. cd will not work. I think it's an issue with the active
field in users
table. when active is changed to 1 and then logging in . it works.
request a challenge in one user and timer starts. logout and login as another user. the same timer can be seen running there.
$ ls
gives output as No such directory. Problem in 9d530ed
cat command neglects empty lines when printing the file contents.
Currentl we have only a single question for you to try and code. New questions, solutions and answer test cases are required so that people who visit the game get an entirely different experience each time. All new questions can be submitted in this issue and will be added to challenge.
To submit a new question, 3 things are required: the question itself, its solution in python and 10 test cases.
the prompt does not change if a timeout occurs when the user is logged in. this results in a user staying in a driectory in the terminal, even after it is deleted.
The user can request again for a challege after timeout. This feature works only if there are large no.of questions in each level and sublevel. Otherwise the user gets the same question again and again. Some of counter should be added so that after a certain no.of timeouts the user is locked out.
editor should be shown only when edit command is entered and should hide when Ctrl+e is pressed. editor needs to display just the file names, not save and close buttons.
If one user sign in -> sign out and then another user sign in, they can see the previously signed in user's history. @SwarajKR I think it has something to do with cookie.
issuing ls command with a filename should return, not a direcory , but is not returning any error message
the answer file should not have any extension. but it is appended with .txt. file name should be changed in dashboard
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.