TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Codefights

154 点作者 r_ms超过 10 年前

33 条评论

columbo超过 10 年前
I think you should show the comments first without a time-limit and then allow the user to play. For example:<p><pre><code> &#x2F;* * @Input1: an integer * @Input2: an integer (@Input1 &lt;= @Input2) * @Input3: an integer (@Input3 !== 0) * @Output: maximal integer from @Input1 to @Input2 inclusive * which is divisible by @Input3 * or -1 if there in no such number *&#x2F; </code></pre> &lt;insert click to play button&gt;<p>Right now it takes me 20-30 seconds just to read and understand the comments.
评论 #8207896 未加载
tsholmes超过 10 年前
One suggestion for the founders, don&#x27;t start the timer until the code has loaded, and stop the timer once you submit. I lost 10-15 seconds to loading the code and then got game over because i submitted with 10 seconds left and it took longer than that to actually send.
评论 #8207702 未加载
评论 #8206508 未加载
评论 #8206496 未加载
评论 #8206637 未加载
评论 #8206484 未加载
评论 #8206772 未加载
Tiks超过 10 年前
Hi guys, co-founder of codefights here, the site is still in beta and someone posting it to HN caught us totally off guard. Migrating the servers now to something that can handle this traffic. Appreciate the patience :)<p>EDIT: OK Servers migrated but it still can&#x27;t come close to handling HN rush levels. While that&#x27;s passing I can explain the main concept here.<p>A task on codefights is a function written in javascript that has 1 bug on 1 line of it and your goal is to find and fix it as soon as you can. There is a Solo mode and a VS Friend mode. In the Solo mode you start with easy tasks and need to find the bug in under a minute, if you do, you go to the next rounds where the tasks progressively get harder.<p>In the VS Friend mode, you codefight someone else where you guys have 5 rounds facing the same task in each round and each correct solution is 100 points, pass is 0 points and an incorrect answer is -25. At the end of 5 rounds whoever gets more points wins.<p>Please let me know if anyone has any questions or feedback. Hope you guys will get to try it for real soon :).
评论 #8206361 未加载
migstopheles超过 10 年前
Maybe I&#x27;m just showing my low IQ, but it takes me 20 or 30 seconds just to understand some of the problems. Maybe introduce difficulty levels? Currently, I can&#x27;t ever solve a problem if it takes me more than 1 minute - I&#x27;d like to be able to get to an answer, even if it&#x27;s then worth zero points (or even goes into negative points?).<p>I like the idea, but I can&#x27;t play more than 2 or 3 rounds. Or maybe the game just isn&#x27;t aimed for people like me...
评论 #8207064 未加载
评论 #8206732 未加载
评论 #8207434 未加载
评论 #8207608 未加载
louhike超过 10 年前
I cannot connect with my Google account because I have an accent in my first name. And I cannot create an account with just my email (it sais &quot;user not found&quot;)
评论 #8207399 未加载
评论 #8207080 未加载
cfontes超过 10 年前
It doesn&#x27;t load at all for me... HN effect i guess.<p>But the idea looks like a very nice time waster or argument resolver.<p>I have a co-worker that always has the best theoretical cafe solution to every single bug ever found on any computer program, on this and parallel universes.<p>Would be nice to play this against him and maybe win one or 2.<p>Edit:<p>Looking at the bright side.<p>Most people that up voted the site liked the idea even without seeing the product working( I did).<p>That alone is a nice thing to have. So if you make it work you will get double XP!
评论 #8206487 未加载
jrochkind1超过 10 年前
Interesting idea.<p>Several of the solutions I encountered are just... plain done wrong. They have a bug, sure, but the bug&#x27;s actually there cause it was written in a really hacky way instead of the simplest way that would implement the function.<p>I feel like it took me longer to find the bug in the hacky implementation than it would have to rewrite it &#x27;right&#x27;.<p>(For instance, the &#x27;right&#x27; way to find &quot;largest integer with x number of digits&quot; is clearly and inarguably `Math.pow(10, x) - 1`. Not the hacky 4-line-with-for-loop thing they showed me with a bug in it. No?)<p>I wonder if it would be interesting to have something like this run your solution through a simple test suite to see if it works (like my university professors used to do on our homework), instead of accepting only one exact right answer.
评论 #8208553 未加载
danielsamuels超过 10 年前
The example on the homepage started a countdown from 1 minute, it was &quot;Loading the task&quot; until there were 7 seconds left, then by that time I&#x27;d lost interested and it just said &quot;Game Over&quot;.<p>Game over indeed.
评论 #8206779 未加载
woutervdb超过 10 年前
Liking the idea, too bad it&#x27;s simply an awful experience with all the HN traffic. I hit &quot;Sign up with Facebook&quot;, then &quot;Edit what CodeFights can see&quot;, and the counter had already begun. After authenticating I got an empty pop-up which I closed by myself, and I finished the challenge. I then got the error &quot;Authentication error&quot;.<p>However, I like the idea and understand that this experience is not what you&#x27;ve made so I&#x27;ll give it a chance and upvoted it.
评论 #8215000 未加载
GotAnyMegadeth超过 10 年前
It should show you the correct answer if you get it wrong.
评论 #8207072 未加载
评论 #8207831 未加载
vankap超过 10 年前
This is very nice. More engrossing than most games I play. Instead of starting over every time I lose, I would prefer if I was penalized and allowed to continue playing. For instance, if I lose round 5, then I will also lose all the points from round 4 and continue playing from round 4 instead. It&#x27;s just something that I thought would make it more interesting and playable for me.
anonaut超过 10 年前
Seems really nice, but coul&#x27;d you add a solution if you fail in time? would be really awesome
hfsktr超过 10 年前
From all the comments here I was expecting it wouldn&#x27;t work at all without signing in somehow. Luckily that wasn&#x27;t true and the site didn&#x27;t seem slow at all so I got to actually try it.<p>I did like it but really wish there was an explanation at the end with the solution (or a solution). Since I don&#x27;t know what is wrong I don&#x27;t even know what to search for.<p>I am not sure if you have categories for the types of problems but dividing them into syntax&#x2F;logic&#x2F;easy&#x2F;difficult&#x2F;etc and showing your score on those or even compared to others (this might be what signing in does for you but I didn&#x27;t do that).<p>I am sure I sound negative but I was impressed. Especially as it&#x27;s still in progress.
DavidxD超过 10 年前
Great idea but sadly I cant try it out :( Using Firefox on Android and the stock Browser I was finally able to login using g+ but I can&#x27;t edit the code. I can add something but I can&#x27;t delete anything that was already there. E.g. I can&#x27;t change return a to return b. Using chrome I can&#x27;t even login. Authenticate using g+ sometimes directly shows authorization failed and sometimes opens a new tab to codefights.com&#x2F;_oauth&#x2F;google?state=xyz&amp;code=xyz that seems to do nothing. If I close it, I get authorization failed as before. Everything I currently do is done on Android 4.4.4 because I just have a smartphone (N5) available ATM.
ozh超过 10 年前
I would love if HN had a &quot;Save&quot; button -- save an item into a personal list so I can, for instance, retry a link later after the HN effect has stopped...
评论 #8206730 未加载
评论 #8206289 未加载
rory096超过 10 年前
&#x2F;<i></i> * @Input1: an array of strings * @Input2: a separator that will be used when concatinating * the strings from @Input1 * @Output: a concatinated string * @Example: myConcat([&quot;Code&quot;,&quot;Fight&quot;,&quot;On&quot;,&quot;!&quot;],&quot;&#x2F;&quot;)=&quot;Code&#x2F;Fight&#x2F;On&#x2F;!&#x2F;&quot; *&#x2F;<p>Guess s&#x2F;concatinated&#x2F;concatenated&#x2F;g wasn&#x27;t the bug...
codecondo超过 10 年前
Is it anything like code challenges? I might add it to this list: <a href="http://codecondo.com/coding-challenges/" rel="nofollow">http:&#x2F;&#x2F;codecondo.com&#x2F;coding-challenges&#x2F;</a>
评论 #8206489 未加载
andrewchoi超过 10 年前
After I fail a challenge, the screen disappears too quickly for me to continue looking at the challenge and figure out the correct solution. Is there a way to enable feedback or solutions?
评论 #8208666 未加载
qzcx超过 10 年前
I love the idea. It still needs more problems though. I kept hitting the regEx problem and failing because I&#x27;ve never done regEx in JavaScript. So adding more problems would be nice.
kyberias超过 10 年前
I think I&#x27;m fairly fast at debugging but these were way, way too hard with the strict time limit. It takes a lot of time to read the problems and the quality of the problems is poor.
pavel_lishin超过 10 年前
Ghostery blocks something that seems to break the site altogether: <a href="http://i.imgur.com/hTkLTqd.png" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;hTkLTqd.png</a>
druska超过 10 年前
I don&#x27;t like how I can&#x27;t change the number of lines of code. It&#x27;d be faster to completely rewrite some of the solutions!
imslavko超过 10 年前
Great to see CodeFights being launched! I enjoyed the graphics and dynamics of MathFights.com as well, well done, Tigran and the team.
niels_olson超过 10 年前
Here&#x27;s the problem: this is so awesome I forgot to come back and upvote until it was almost off the front page. THIS IS AWESOME!
ErikRogneby超过 10 年前
the Oauth redirect receiver is failing for both Google and Twitter. (<a href="http://codefights.com/_oauth/twitter?close&amp;state=*hashed_key*" rel="nofollow">http:&#x2F;&#x2F;codefights.com&#x2F;_oauth&#x2F;twitter?close&amp;state=*hashed_key...</a>)
hoopism超过 10 年前
Twitter authorization doesn&#x27;t work... unless that&#x27;s the first round... did I fail?
shangxiao超过 10 年前
1&#x2F;2 the available time was taken waiting for &quot;Loading the task...&quot; !
评论 #8206500 未加载
eclipxe超过 10 年前
This is a lot of fun - server is a bit laggy&#x2F;buggy but unique idea, very cool!
评论 #8206207 未加载
danielweber超过 10 年前
This is a lot of fun.<p>Please say which language the problem is in.<p>Also, many times it seems to hang.
评论 #8209169 未加载
inoab超过 10 年前
This is like a hackathon project I had this year at HackRU.
评论 #8208695 未加载
joekinley超过 10 年前
I couldn&#x27;t even try it. Waiting to check out tho
kurokikaze超过 10 年前
Hug of death?
JSno超过 10 年前
is JS the only lang you support?
评论 #8215002 未加载