Code Monkey home page Code Monkey logo

wordsearch-puzzle-solver's Introduction

Tugas Kecil 1 IF2211 Strategi Algoritma

Merupakan sebuah program untuk menyelesaikan Word Search Puzzle dengan memanfaatkan Algoritma Brute Force. Word search puzzle adalah permainan kata dimana pemain harus menemukan beberapa kata tersembunyi dalam kumpulan huruf acak. Program dapat menerima file txt yang berisi word search puzzle yang ingin diselesaikan dan akan mengeluarkan output berupa lokasi dari setiap kata yang dicari. Program ini dibuat dalam bahasa C++.

Requirement Program

  1. C++

Cara menggunakan Program

  1. Buka folder src
  2. Jalankan file yang bernama wordSearchSolver.cpp
  3. Masukkan nama file dari word search puzzle yang ingin diselesaikan, tanpa .txt (perhatikan bahwa lokasi file harus berada di dalam folder test).
  4. Tekan enter dan program akan mencari seluruh kata pada puzzle kemudian hasilnya akan ditampilkan satu per satu.

Format File txt

Program dapat menerima input berupa nama file teks yang berisi matriks huruf di dalam puzzle (antar huruf dipisahkan oleh spasi), diikuti satu baris kosong, dan daftar kata-kata yang akan dicari di dalam puzzle. Berikut adalah contoh isi file teks yang benar

P Q G T T X E S P I D O L T O
Q E K G I I S K O N U S Z U Y
Z M N E L P I J X S S T J J D
Q Q E S M B X N J K P F G G M
H H B H I U K U B E U T U N H
E Y N H I L C L N N S E N I U
V L S T A B I L O O S O T C E
L Q I L W R T K O T U E I N T
F E R H H T O Y A I P R N U Z
D F A H U N O B U E A R G R A
S G G F B A I D N L H E N E S
E R G L B L F A H N G T Z P Q
N F N A O P I F N I N K O F J
P I E N X L J D O E E E L B S
Z A P I D F O S A K P H T J Q

BUKU
PENA
PENSIL
PENGHAPUS
PENGGARIS
SPIDOL
TIPX
GUNTING
STABILO
HEKTER
PERUNCING

Author

Lyora Felicya - 13520073

wordsearch-puzzle-solver's People

Contributors

lyorafelicya avatar

Watchers

 avatar

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.