Giter Site home page Giter Site logo

devashi-choudhary / n-emojis-problem Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 2.09 MB

In N-Emoji problem, on NxN board no two-neighboring blocks are of the same emoji are allowed. The problem is solved using BFS and DFS.

Jupyter Notebook 100.00%

n-emojis-problem's Introduction

N-Emojis-Problem

It is a fun game in which, you have NxN Board where you are allowed to put emojis on board according to your choice and, using the Breadth-First Search (BFS) or Depth-First Search (DFS) the same type of emojis will not be adjacent to each other. Now the code support for 2,3,4, values of N, For higher values of N it takes much time because the whole search space or all the nodes of the tree will be traversed in the worst case for achieving the goal state using BFS or DFS.

N Emoji Problem

Dependencies

As the BFS and DFS are heuristic search algorithm, we need only copy & emojis python library.

How to execute the code :

  1. You will first have to download the repository and then extract the contents into a folder.
  2. Make sure you have the correct version of Python installed on your machine. This code runs on Python 3.6 above.
  3. You can open the folder and run following on command prompt.

python color_emoji_BFS.py or python color_emoji_DFS.py

Results

output

Acknowledgement

The project was done as a part of college assignment.

n-emojis-problem's People

Contributors

devashi-choudhary avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

deepaliverma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.