Activity

Ryan Chen

Ok so, toda-yesterday, I had some fun with the code, cleaned up the code a bit, shortened it, made it look a lot wors-better.
I added some additional logic, allowing users to adjust the quality of images allowed. Now, I didn’t want to directly copy someone else’s project, so I changed to main project a bit, so it would like not copy their’s, you feel me?

anyway, thats it.

Attachment
0
Ryan Chen

ZAMN almost 24 hours of work on this project, and its still dumb asl ;(

Nothing to add, im just pissed that it keeps drawing against itself, mabye I should add like games where i actually win lol.

Attachment
0
Ryan Chen

OK SO After ~2 hours of brainstorming logos with my friends (yes i have friends [shocking i know]) They recommended me the WORST logo idea, hence meaning it was an absolute waste of time. BUT!!!!!!!!!!!!!!!!!!

I did spend a lot of time, in adding PGN strings, by hand, from HIGH QUALITY chess.com games (nah I was on such a big losing streak, that i just quit, put stockfish against stockfish and like different engines against each other, can copied the fen over one by one (hence the 7 hours and 39 minutes)

Other than that, i made a logo, which is just a crossover, from the Houdini chess engine logo, and the Stockfish Chess engine logo!

editing software: Microsoft pain!

I hope you guys enjoy the logo, as this will be the new current logo!

Attachment
Attachment
Attachment
Attachment
0
Ryan Chen

Ok so i got so bored. I swear i spent longer that 2 hours and 2 minutes but what ever.

I am going to make a ui for this project now!

The AI model has started to learn promotions, which means that it is like no longer really bad, but now its just slightly bad.

Thats practically what i dont for 2 hours, i played chess games and copied its fen and pasted it into backup game data also pushed to github.

Attachment
Attachment
0
Ryan Chen

Alright, for me its currently the morning, and I currently done practically nothing.

What I have done though, was download a polyglot opening book, called GM2001, which is practically a “cheat code” for this project, as it allows me to skip training Null Move (which is its name) from the beginning and make it start actually training from the midgame. As since it is an opening book, it just tells the AI model, “Hey, these are statistically the most well known and best openings used by world-leading chess engines, like Stockfish or LC0, you should use these openings”. And it has saved me at least thousands of hours of training, as Null move is currently at the “Baby” stage, where there has been no promotions, the games are very noisy, and are 99% drawn, with a few exceptions where one side “accidentally” wins out of luck.

Another 2 paragraphs here that i had to remove cause of “2000 character limit” check the comments for them!

Anyway, i will put out another devlog in like 6-7 hours (jk probably 3 hours aka when i get bored of this and decide to touch grass)

ALSO HUGE THANKS TO GMCHEEMS FOR THE AMAZING OPEN SOURCE OPENING BOOKS THAT I COULD DOWNLOAD AFTER SeARCHING THE INTERNET FOR LIKE 3 HOURS!!!! (you guys should check them out!!!)
link is below of the dataset i copied, called GM2001.bin
https://github.com/gmcheems-org/free-opening-books?tab=readme-ov-file

Attachment
Attachment
Attachment
1

Comments

Ryan Chen
Ryan Chen 8 days ago

Para 1:
That is currently what I have done, I will also be typing out alot of .JSON FEN, which is just a bunch of random moves/positions, so that I can manually inflate the dataset Null Move trains on! Since the original dataset contains 200,000 lines, I am just going to play some chess games on like chess.com against random people, friends, bots/engines, and also import a bunch of grandmaster games, then make Null Move analyse them (if I can), which would see a large increase in skill, hopefully.

Para 2
Now unfortunately, Chess.com/lichess does not allow downloading FEN for the entire game, and requires you to copy and paste it, one move at a time, this will obviously take an INSANE amount of time (something that i am used to by now, thanks to my calculator project). now obviously, there is another issue with this strategy other than being super inefficient, and the issue is that the data I collect for Null Move, has to be “good” or “high-quality” so the model would not (quote-on quote from chat) ’degenerate”. But here is the thing, my model is so shi-… I mean not that good, where even if i play poorly, it would not matter, as it is already thousands of times better then how Null Move plays like.

Ryan Chen

Today I done nothing (YAY!!!)

I just watched the AI train and verse itself.

And i watched the json file go from 80,000kb to 180,000kb

Some good news, Chatgpt and my AI has started to learn how to win games (accidentally)
With it like doing crazy king walks straight into checkmate and then rating it as like winning for itself in its re-evaluation session (epochs).
I am just dissapointed, but Chat says it will “grow out of it”

damn i forgot to add attachments will do asap

Attachment
Attachment
0
Ryan Chen

Finally got the model working!!! Had a lot of issues, like the model would not save its game data.

Practically, the solution to this issue, was ask ChatGPT, it would give me the solution, I would Ctrl-C + Ctrl-V into VSCode, it would not work, I would crash out, and spend 5x the required time to solve the issue I MADE by asking ChatGPT. Nevertheless, Chat GPT was useful for building the general structure.

What I, Stackoverflow, reddit and chatgpt done was:

  1. learnt how to build a neural network with residual networks
  2. Learnt new word!! (Epoch).
  3. Learnt that AI is actually really dumb (esp for programming)
    Honestly other than that, im really proud of myself for getting the program working (and yes I did use Chatgpt for it, but i did learn many things currently, like what Monte Carlo tree Simulation was, and like how difficult training AI models are, especially with the issue of Overfitting and underfitting.)
    Honestly, without chatgpt, i could never dream of doing this, but in my opinion, chatgpt like gave me the “knowledge” for the mathematical aspects where i could combine it for code.

Anyway guys i will update when a new big thing happens!!!

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
Ryan Chen

I got a bit carried away with the project, I regret starting this project very much. It is very hard, most of my code (unfortunately) was given/(helped me) to me by a) stack overflow (MY GOAT) b) chatgpt… (please i don’t want any hate for doing this), but in my defense right. Making an AI chess engine is hella impossible bro.

so what i learnt,

  1. do not do this (not for the weak!!!)
  2. VERY HARD mathematics!!! (MCTS nearest K, a+b pruning neuron efficiency (or whatever its called))
  3. Very time consuming (5h and 38 minutes of work just to set up the data pipeline (yes WITH “vibe-coding” [thanks chatgpt])
  4. VERY VERY TIME CONSUMING, as if i want it to play atleast well enough (around 800 elo), I and chatgpt estimated around like 100-200 hours MINUMUM.
  5. computationally expensive (very poor now)
  6. emotionally crushing (because im very poor now and time wasted)
  7. (67!!!)
  8. welp other than this, my rant is done!

I hope you will enjoy this, and i am also ignoring how would i make it deployable to a website.

ps az means (Alpha-Zero (famous chess engine made by google deepmind that beat gary kasparov!!)
(this project is inspired by AZ!)

hence the structure might be very similar (where is it computationally viable for me)

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
Ryan Chen

Well I was doing some research, and I just realised that there is a project that is very similiar to mine. This is very unfortunate, but it will not stop me from making it.

Who knows what I might do now.

I ALSO GOT IT TO WORK (before i realised it was in another repo)

just a fair warning, it might lag a bit

Attachment
0
Ryan Chen

Well, I might’ve decided to change course a bit with this project, and I decided to make it so that the user themselves can adjust the settings for upscaling (before it was more like a one-size fit all)

But NOW I’m just wondering if Obama is a good image or if I should use something more niche…

Also I worked on the project a bit, added some floating clouds that kind of move depending on where your cursor moves, and before it was a dark theme, but I changed it into a lighter theme, like SUPER LIGHT MODE ~~~

(just dont use it on MAX BRIGHTNESS!!!)

also i have to acknowledge chatgpt for helping me a bit with the html (im not that good at it, so i asked chatgpt about the image enhancers and the slidebars which were java i think)

This was 1 hour and 50 minutes of good work imo will update later!!!

Attachment
0
Ryan Chen

Alright, more motivation from publishing my wonderful calculator has led me to create something genuinely beneficial to the community, an image upscaler, with some really ambitious capabilities (able to upscale from 720p to 4k (heck even 8k)!! This is most definitely another serious project (like my previous calculator project) and I hope i can finish it in time. This is most certainly a new project for me and i am quite concerned, about my personal ability to do this.

Check out the image! ( IT IS NOT POLITICAL)

and the image is most DEFINITELY not related to my project.

Attachment
0
Ryan Chen

Shipped this project!

Hours: 4.76
Cookies: 🍪 57
Multiplier: 11.97 cookies/hr

I Made the best calculator ever!!
Its a pretty simple design, in a website, you have to manually type in and delete the numbers, it only works for addition and numbers between -100 and 100.

I learnt that, things don’t have to look good to be good, and slop sometimes took a long time to make.

I made it look terribl- i mean wonderful for a reason ofc!!!

I hope you all ENJOY!!!!

Ryan Chen

Man, I nearly died out there, I had to fight like 20 different lv 100 bugs bro.

First thing I noticed: the calculator was technically working, but the “anger meter max” was anticlimactic. You’d hit 100 and… nothing. I literally friggen crashed out about it then I just locked in and solved the issue, (i most definitely did not write it into the wrong document…)

Then there was another bug, as i tried to squash it, it looked like it started to work, but the features were missing. But I realised I forgot to take my meds, and it was just a display issue (short story long, it worked, but the achievements were not shown until you unlocked them)

So I added a counter like x/y found. That way achievements stay hidden (no spoilers), but you still get that little completion tracker that makes you chase them.

There was another CAPTCHA feature that didn’t work (not gonna tell you what i fixed in it because it ruins the mystery of the demented calculator) But practically, i made it less strict.

Finally: the GitHub push. Push initially got rejected because the remote had newer commits, so I stashed the extra local junk, then pushed cleanly. lowk scared me

PLEASE all I ask for, is to have fun and any improvements or suggestions for new projects, feel free to DM me.

Attachment
2

Comments

almartdev
almartdev 13 days ago

‘the calculator only belives in +’ HAHAHAH, very nice project bro

Ryan Chen
Ryan Chen 12 days ago

Thanks, it took some time for me to make it.

Ryan Chen

So today I woke up on the wrong side of the bed, actually, I fell off the bed, now falling of the bed gave me something I most definitely never felt before, and it was malice. Pure hatred for gravity and for some reason, it went from hating gravity, to Newton and then to hating every mathematicians 2nd love, CALCULATORS!!!!

First mission: make it look horrible on purpose. I shipped peak eyestrain in style.css, then put it in the UI in index.html so it’s basically a neon warning label with buttons. Like some 2000s website :3.

Now, if you thought that was extreme, I made it so that instead of doing normal addition like a NORMAL program, I made a massive lookup table and split it into multiple files so the browser can load it without exploding (hopefully)

After that, since im dragging a dead meme, I added the number 67 (I swear its a religion atp) and you should most definitely trigger this!

Now whats better than a useless calculator… A CALCULATOR THAT GETS MAD!!! This now has an anger meter that ramps up when you do annoying inputs(Im not going to tell you, your gonna have to find out!)

NOW! Another feature that makes this calculator the best in the world is that… It likes gambling as well!!! (It has a crippling gambling addiction lol); I introduced a “Close enough mode” which just rounds numbers randomly for fun.

Finally, when people get bored of mathematics, they can always access their achievements, because nothing says “math tool” like gamifying 1+1!!!!

After all of this, I had to 1, replace my finger nails. 2, replace my keyboard and 3, unlobotomize myself after looking at the best calculator ever fr!

Alot of pain sweat and tears were leached out of me for this project, so PLEASE! Appreciate it and feel free to DM me for new project ideas that are cursedddd!!!!!!!

Err that’s practically it lol. im gonna prolly do more bug squashing after mabye more trolling features, idrk.

Attachment
Attachment
0