Coder Social home page Coder Social logo

aviate-labs / dots Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.12 MB

@dscvr-one Hackathon S2 Entry

Home Page: https://2kvgp-zyaaa-aaaai-aappq-cai.raw.ic0.app

License: Apache License 2.0

Modelica 28.03% CSS 4.88% HTML 6.10% JavaScript 56.60% Dhall 4.38%

dots's Introduction

DOTS ...

This is a project build for DSCVR's 2nd Hackathon, build in less than 1 day. So there are probably some bugs here and there...

I (currently) do not plan to actively contribute to this project. But feel free to open PRs and add new features, I am happy to review and maintain it.

DOTS participated in the initial launch of Metascore (22-25 Sept 2021), the scores of this period can be found in the dump directory.

Since the score mechanism is not on point, and not safe against cheaters, it will not participate in other Metascore championships. A more in detailed explanation below.

Proof of Work

A first problem I stumbled upon was: 'How to send score to the backend canister, tamperproof?'. There are various ways of doing this. I needed a quick and easy solution, since this was a hackathon project.

So, I decided to not open-source the code immediately to make it at least a little harder to cheat. Which worked.

How can we validate if the user did send a fake highscore?

  1. Generate the food location in the backend canister.
  2. Add some hash that only the backend can create/validate.
  3. Done.

Not quite... Since the user can still just query a series of food coordinates, lets say a 1000. And then send the these as their new score to the backend.

Because of this is now public information, the game will not participate in upcoming Metascore championships.

If you have an easy was to make it tamperproof, feel free to open a PR to add this to the game!

Usage

Deploying Backend Canister

dfx deploy --network=ic dots --argument {entropy}

Create a Score Dump

dfx canister --network=ic call dots metascoreScores >> dump/10:25.09.2021.scores

dots's People

Contributors

q-uint avatar jorgenbuilder avatar

Watchers

 avatar Lance Hume avatar

Forkers

739lab

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.