Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linkedin-queens

Program to automatically solve the LinkedIn Queens game using mss for taking screenshots, opencv-python for game board detection, pyautogui for mouse control, sty for color in console outputs, and a simple backtracking algorithm to solve the puzzle.

I made this as a joke so don't take it too seriously

demo.mp4

Setup

  1. Clone the repository and navigate to the project folder.
  2. Create a virtual environment and install the dependencies. The project was developed in Python 3.11.9.
    python -m venv <envname>
    source <envname>/bin/activate
    pip install -r requirements.txt
    
  3. To run the project, execute the following command:
    python main.py
    
  4. Make sure LinkedIn is open in Google Chrome* with the window maximized on your primary monitor (if you have multiple monitors). The program works best when LinkedIn's display is set to Light Mode. Note that the program assumes a 1920x1080 resolution—the template matching will likely not work otherwise.
  5. Navigate to the Queens game page while the program is running and start the game. The program should automatically solve the puzzle for you and exit once it has completed the game.

*The program was tested on Google Chrome. It may work on other browsers, but this is not guaranteed.

Future Work

I don't plan on working on this project anymore, but I'll happily accept pull requests. Some potential improvements include:

  • Support for different screen resolutions, maybe through multi-scale template matching or something more clever and robust
  • Support for Dark Mode
  • Support for people using WSL; there is a known issue with the mss library in that it isn't able to capture the Windows desktop and can only communicate with Linux processes
  • Test the program on different browsers and make it browser-agnostic if there are any issues
  • Figure out how to make the program stop flagging other windows like the terminal as the game board
  • Better error handling, logging, detecting if the puzzle has already been solved, etc.

About

how to ruin the linkedin queens game because i was bored

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages