{"id":20325648,"url":"https://github.com/lamdav/xterncoin","last_synced_at":"2026-04-08T11:32:10.263Z","repository":{"id":71874055,"uuid":"72062292","full_name":"lamdav/xterncoin","owner":"lamdav","description":"Xtern Coin Technical Screening Question","archived":false,"fork":false,"pushed_at":"2016-11-02T18:27:12.000Z","size":886,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T11:43:57.089Z","etag":null,"topics":["cryptocurrencies","express","heroku","nodejs","react","technical-screening","xtern"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lamdav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-27T02:11:44.000Z","updated_at":"2025-11-09T11:52:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1858573-517d-4e48-ba98-4a1ed7bea653","html_url":"https://github.com/lamdav/xterncoin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lamdav/xterncoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamdav%2Fxterncoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamdav%2Fxterncoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamdav%2Fxterncoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamdav%2Fxterncoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamdav","download_url":"https://codeload.github.com/lamdav/xterncoin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamdav%2Fxterncoin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptocurrencies","express","heroku","nodejs","react","technical-screening","xtern"],"created_at":"2024-11-14T19:40:59.184Z","updated_at":"2026-04-08T11:32:10.215Z","avatar_url":"https://github.com/lamdav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).\n\n[Demo](https://xterncoin.herokuapp.com/)\n\n# Description\nThis is my solution to the Xtern Technical Screening. \n\n# The Background\nA new cryptocurrency has hit the market called XternCoin, and you are the lead developer, product manager, IT analyst, and/or designer (depending on the role you are applying for in Xtern).\nLike all cryptocurrencies, XternCoin has value because of the compute difficulty of solving cryptographic problems. What's our cryptographic problem? Guessing random numbers.\nXternCoin users must guess random numbers. If they guess correctly, they are awarded a coin. Once they have coins, they can trade them with other users, buy things... all the normal stuff you can do with dollars. At least, that's the idea.\n\n# The Problem\nRight now, XternCoin is just an idea and a small spec.\nYour job, should you choose to accept it, is to advance the creation of XternCoin in a way that best fits your background and skillset. Pick one of the sections below based upon the role you are applying for in Xtern. If your role isn't listed verbatim, read over them all and try your hand at something similar, or contact TechPoint (talent@techpoint.org) for more help.\n\n# Requirements\nfunc HandleGuess(userId string, guess int) bool {} (Server Code)  \nFunction which takes a user's id and a user's guess, and returns whether or not their guess was correct.\n\nfunc GetCoins(userId string) int {} (Server Code)  \nFunction which takes a userid and returns how many coins they have.  \n**Note:** this is unused as a guess will already return how many coins the user has regardless of success or failure of guesses.\n\nFinally, one more function is required:\nfunc StartGuessing() {} (Client Code)  \nA function which, when called, pretends to be a user of XternCoin and uses the other two functions you've written to accumulate coins by guessing random numbers in a loop (indefinite is fine)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamdav%2Fxterncoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamdav%2Fxterncoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamdav%2Fxterncoin/lists"}