Skip to content
HexAguess Game
Profile icon
h
has Hacker Plan
JDOG787

Hi everyone!

Ive been working on this game for a couple days now. Its called HexAguess. You try to guess which out of six colors is the correct hex color code that it shows you! For a full explanation go here!

Where I got the idea?

Well I got this idea from one of my courses where we made a game like this but much simpler and it was with RGB. So I decided to try to remake it with hex codes and add other features like points and lives!

Features

  • Points
  • Lives
  • Random Colors
  • Great UI (Hopefully xD)

Sneek Peek:

Screen Shot 2020-10-04 at 6.46.57 PM

If you liked it go ahead and upvote!

Thx!

You are viewing a single comment. View All
Profile icon
NoNameByProgram

ok i made a script... just put this in a tampermonkey script and ur done :D

// ==UserScript== // @name HexAGuess Hack // @namespace http://tampermonkey.net/ // @version 0.1 // @description Make you just relax... somehow. // @author NoNameByProgram // @match https://hexaguess.jdog787.repl.co/game.html // @grant none // ==/UserScript== window.onload = function(){ String.prototype.convertToRGB = function(){ var aRgbHex = this.match(/.{1,2}/g); var aRgb = [ parseInt(aRgbHex[0], 16), parseInt(aRgbHex[1], 16), parseInt(aRgbHex[2], 16) ]; return aRgb; } function check() { var hex = document.getElementsByClassName("color")[0].innerHTML.replace("#", ""); var rgb_hex = hex.convertToRGB(); var find_rgb = "rgb("+rgb_hex[0].toString()+", "+rgb_hex[1].toString()+", "+rgb_hex[2].toString()+")"; var all_buttons = document.getElementsByClassName('guess'); for (var i = 0; i < all_buttons.length; i++) { if (all_buttons[i].style.background === find_rgb) { break; } } return i } var button = document.createElement("button"); button.style.background = "orange"; button.style.color = "white"; button.style.border = "none"; button.style.padding = "3px"; button.style["border-radius"] = "5px"; button.innerHTML = "Do it for me!"; document.body.appendChild(button); button.addEventListener("click", function(){ var all_buttons = document.getElementsByClassName('guess'); all_buttons[check()].click(); }); }
Profile icon
zplusfour
Profile icon
JDOG787
Profile icon
NoNameByProgram

@JDOG787 im gonna make version v0.2 :OOOO
with a 1/2 button

Profile icon
JDOG787
Profile icon
NoNameByProgram

@JDOG787 The 1/2 button will remove 3 guesses and potentially make your chances of getting it right higher.

Profile icon
ch1ck3n

@NoNameByProgram Wow it actually works

Profile icon
JDOG787

@NoNameByProgram hmmmm cool

Profile icon
JDOG787
Profile icon
JakeHu2020

@JDOG787 tampermonkey install: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en Then click the puzzle piece on the up right part of the screen. Then click the tampermonkey image. Then press new script, and paste the script.

Profile icon
JDOG787
Profile icon
JakeHu2020
Profile icon
NoNameByProgram

@JDOG787 Unfortunately, we are not able to make a 1/2 button. You are not able to append children to the guesses. This may result in glitches and broken UI. We are sorry for the inconvenience.

Profile icon
JDOG787

@NoNameByProgram lol its fine

Profile icon
N3rdL0rd

@NoNameByProgram omg i love it

Profile icon
JDOG787
Profile icon
NoNameByProgram

@JakeHu2020 also, why are you 9? aren't you supposed to be at least 13 to join this?

Profile icon
LoganSpong

@NoNameByProgram you would be surprised
wink wink