Giter Club home page Giter Club logo

thenameisajay / puzzlo Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 426 KB

The objective of Puzzlo is straightforward yet compelling. Players must discover the daily pin or password. The earlier in the day, they manage to find the password, the higher their score becomes, as it is calculated based on the period within the day and the number of tries.

Home Page: https://puzzlo.me

License: MIT License

JavaScript 74.69% Procfile 0.05% HTML 8.28% CSS 16.98%
collaborate game github hacktoberfest heroku javascript learn mern-stack mongodb react

puzzlo's People

Contributors

frkntkny avatar thenameisajay avatar

Watchers

 avatar  avatar

puzzlo's Issues

disable unlock button while fetching

disable unlock button while fetching - and the button text can show loading... --- when the internet is so slow it does work properly. I tried on my phone and it was not clear

Play Page - Max Score

On the play page, depending on the time, the maximum score should be shown to the user.

TO SHOW SCOREBOARD DATA

Before the username is put up on the scoreboard , the player must be able to see their score.

change the number without unlock

When you enter the data there is no way to clear the input. it only clears after clicking unlock. (It can be solved by iphone style scrolling system.) or simple we can add clear button

Change in the time factor for the Scoring Algorithm

Rather than count the local time from 00:00, the player clicks on the play button or loads the play page, A counter starts in the background and is also shown to the user. The time taken to solve the game is what should be factored into the scoring algorithm rather than the time from 00:00.

@frkntkny

Score Display

When the guess is correct, the score should be more emphasized and clear.

API TODAY

/api/today - should not be displaying password.

Array to Integer

code =

if (data) {
if (data === 1 ){
//for more
res.json({ result : 1 });
}
if(data === -1){
//for less
res.json({ result : -1});
}
if(data === true){
res.json({ result : true });
}
} else {
res.json({ result : false });
}
});

only pass the integer value not an array {result:value} just 0,1,-1

Check route

I just tried to demo the game to my supervisor, due to the /check route API call and creating a new database only when the first user initially plays the game, is making the game non-playable for 2 minutes.

Find a way to delete the db and create a new db after time resets automatically rather than calling the check function , the check function can exist for just verification and backup but not as an initial start.

Go back button needs to be added

user needs to have a right not to submit score so we need to add like go back button or something like that under the submit button

Backend

The password generated is always almost 7000 range.

Potential Problem

Old code = {router.get("/check", async (req, res) => {
const data = await leaderboardDao.checkData();
if (data) {
return true;
} else {
return false;
}
});}

New Code = {router.get("/check", async (req, res) => {
const data = await leaderboardDao.checkData();
if (data) {
res.status(200).json(true);
} else {
res.status(200).json(false);
}
});}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.