This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import tkinter as tk | |
| from tkinter.scrolledtext import ScrolledText | |
| import google.generativeai as genai | |
| # Configure API | |
| api_key = "" | |
| genai.configure(api_key=api_key) | |
| MODEL = "gemini-2.5-flash" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Theta* Algorithm Implementation in JavaScript | |
| class Node { | |
| constructor(x, y, g = Infinity, h = Infinity, parent = null) { | |
| this.x = x; | |
| this.y = y; | |
| this.g = g; // Cost from start node | |
| this.h = h; // Heuristic cost to goal node | |
| this.parent = parent; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class QuestionsAndAnswers { | |
| let question: String | |
| let answer: String | |
| init(question: String, answer: String) { | |
| self.question = question | |
| self.answer = answer | |
| } |