I am creating a program in python for a artificial intelligence for chinese checkers, but i cant even get the board to be portrayed! I am using this code: `Code` from tkinter import * root = Tk() board = PhotoImage(file="board.ppm") root.mainloop() I get the error as follows: Traceback (most recent call last): File "/Users/GAMEKNIGHT7/Documents/chineseCheckersAI(genius hour).py", line 3, in <module> board = PhotoImage(file="board.ppm") File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3539, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3495, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "board.ppm": no such file or directory What happened??`

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm trying to create a character array that would find the absolute value of each value. Ex. Candadite: 111111 / Target: 444444. abs(1-4)(1-4)(1-4)(1-4)(1-4)(1-4) answer: 333333. I have the code running, but I get a consistant answer of 700, even when I move to a new Target set. If anyone could help I'd appreciate it greatly, thanks :) Sorry if this is poorly discribed, I have attatched my project's word document if you need further details. Thanks again #include <iostream> #include <cmath> #include <iomanip> #include <Windows.h> #include <fstream> using namespace std; void readit(); void calcit(char[10][6], char[3][6], char a, char b, …

Member Avatar
Member Avatar
+0 forum 4

hi, I am created 3 tables for 1> category 2> subcategory 3> projectdetail In my website folder structure root-index.php, header.php footer.php folder- about -index.php and other files folder - project- index.php folder - err- 404.php In my php page project/index.php i make left column dynamic, i.e call value from table e.g School project ( this is category) and href link is project/School project xyz (subcategory) and href link is project/xyz abc and href link is project/abc College project www yyy I want do like when click on link project/School project It should display that project but id gives me error …

Member Avatar
Member Avatar
+0 forum 22

Hi, I'm doing a simple study planner in java. Obviously I need to do a timetable generator. The program works like this: 1. The user enters the start time of school and the length of each breaks (Done) 2. The user enters the lessons(Done) 3. When the user presses next I need to generate a timetable using the information provided.(I need to do this) Please help as I'm still a beginner. I really appreciate it. Thanks in advance

Member Avatar
Member Avatar
+0 forum 8

Is it possible to integrate Perfect Circles of the Golden ratio geometry in designing logo based on these link ( https://goo.gl/images/7eYZoG ) to recognize flower.. What do you think guys? Im planning to have a research on this.

Member Avatar
Member Avatar
+0 forum 1

I'm a master's student preparing for my master thesis I'm interrsting to be software engineer I need help for topics that will reflect my dream goal as software engineer although my supervisor gave my task to write proposal in natural language processing I dont know if is a good area to reseach on

Member Avatar
Member Avatar
+0 forum 4

Hey so I am trying to finish up a lab that I did not finish during a class this summer. The goal is to have the computer navigate an ASCII maze on its own. We use left/right hand rule to find our way through the maze. IE. you have your hands out to your side and if it is open we take a turn down that hallway. We leave breadcrumbs behind us to mark our taken path. In this version of the lab we are to have it recall its path between different trail runs, and use the best path …

Member Avatar
Member Avatar
+0 forum 9

Hi, I've recently "inherited" a part built project from a developer who as left our company. He had decided to use Entity Framework but I am finding it to be unstable and slow. I periodically have to reimport objects and stored procedures from the database as the model gets corrupted. I also find database processes to be slower than if I was just running stored procedures and ADO.net The latest fresh hell it has started to pull is an error *New transaction is not allowed because there are other threads running in the session.* I've looked on line and the …

Member Avatar
Member Avatar
+0 forum 5

A couple questions before I even attempt this project... Is it possible to create a VoIP application in Java? Is it posssibe to do this using standard libraries? If you can't make one with standard libraries, which libraries are needed to accomplish this? Also, is this a good Introduction to Server and Networking in Java or should I start elsewhere? Thanks for the help.

Member Avatar
Member Avatar
+0 forum 34

// Also attached to this question is the assignment sheet. Need help pls. import java.util.*; import java.awt.*; import java.applet.*; public class Lab15st extends Applet { private int numBars; // number of bars to be sorted private int barHeight[]; // array of bar heights private int sortDelay; // delay between comparison iteration public void init() { numBars = 47; sortDelay = 20; // Change to 50 is using the "Selection Sort". barHeight = new int[numBars]; getBarValues(); } public void getBarValues() { Random rand = new Random(3333); for (int k = 0; k < numBars; k++) barHeight[k] = rand.nextInt(591) + 10; // …

Member Avatar
Member Avatar
+0 forum 2

I want to do a software project regarding barcode scanning. Basically I want to take an image of a 1D barcode then process the picture file and Decode the barcode.I am not a great programmer but I know the basics. I want to develop my skills through it. I want to use java or c++ for this project. I am not sure where to start or should I even start. How complex might it be? Can anyone help me suggesting where to start or what should I learn to make this possible? And how much time might it take to …

Member Avatar
Member Avatar
+1 forum 5

Hi there, I am stuck with a problem, and don't know where to start. I need to calculate the closest pair of points on the Earth using a divide and conquer method. I know I should calculate the orthodromic distance (or in other words the great-circle distance) but I don't know what to do. This calculation has to last at most nlog(n). I found this: "The problem can be solved in O(n log n) time using the recursive divide and conquer approach, e.g., as follows:[1] Sort points according to their x-coordinates. Split the set of points into two equal-sized subsets …

Member Avatar
Member Avatar
+0 forum 11

Hello, I have to create a program that uses the ‘new’ operator to create a dynamic array in heap of the program. The program creates and populates its dynamic array one (int) elements at a time for each input data (cin). Key parts of the assignment. Hello, I have to create a program that uses the 'new' operator to create a dynamic array in heap of the program. The program creates and populates its dynamic array one (int) elements at a time for each input data (cin). Key parts. 1.) Program has to used "cin >>" for data input to …

Member Avatar
Member Avatar
+0 forum 2

I'm thinking of a game to make from Python 2.7.10, so can you guys tell me what should I make and then I could put the code in a reply :)

Member Avatar
Member Avatar
-2 forum 5

How could I improve my code for Bubble Blaster. from Tkinter import * HEIGHT = 626 WIDTH = 1238 window = Tk() window.title('Bubble Blaster 1.8 - By Lucas - AiroTM - Contact Us On Airo ;)') c = Canvas(window, width=WIDTH, height=HEIGHT, bg='darkblue') c.pack() ship_id = c.create_polygon(5, 5, 5, 25, 30, 15, fill='red') ship_id2 = c.create_oval(0, 0, 30, 30, outline='white') SHIP_R = 16 MID_X = WIDTH / 2 MID_Y = HEIGHT / 2 c.move(ship_id, MID_X, MID_Y) c.move(ship_id2, MID_X, MID_Y) SHIP_SPD = 12 def move_ship(event): if event.keysym == 'Up': c.move(ship_id, 0, -SHIP_SPD) c.move(ship_id2, 0, -SHIP_SPD) elif event.keysym == 'Down': c.move(ship_id, 0, SHIP_SPD) …

Member Avatar
Member Avatar
+0 forum 6

**below is the problem i am given, after this i explain where i am at so far and the code i have created, **Write the following functions in Scheme: 1.a "digitinc4" -takes as input a 4-digit integer, and returns another 4-digit integer constructed of the original input integer's digits, each incremented. For example, (digitinc4 4833) would return 5944. When a digit is a 9, the corresponding output digit should be a 0. For example: (digitinc4 4892) would return 5903. You can assume that the input number is at least 1000 - that is, there are no leading zeros. b. Extend …

Member Avatar
Member Avatar
+0 forum 10

I need an idea for cloud computing graduation project. I was thinking about security and encryption , but most of the ideas are more suitable for a research rather than an application, so I am thinking of making a cloud-based embedded system. What kind of embedded systems can benefit from cloud computing?

Member Avatar
Member Avatar
+0 forum 2

I need an idea for Optical Character Recognition for graduation project. I was thinking about enhancing algorithm used in OCR. In your idea, what algorithm can I enhance and focus with for better result of OCR softwares.

Member Avatar
Member Avatar
+0 forum 1

I'm doing bachelor's in computer science, i want to develop a game on my fyp. My question is how big it should be to accepted . And gauge me some sample game which student created in their bachelor's level.. and your opinion which type of game etc...

Member Avatar
Member Avatar
+0 forum 2

I want to know about develop vb.net project by LAN users... I Find about this internet and I couldn't find..... Please give me steps to do that ....

Member Avatar
Member Avatar
+0 forum 1

I'm trying to Add a method to create a random size and position rectangle and add it to the Python list created in my constructor, The colour of the rectangles are based on the rainbow colours (‘red’, ‘orange’ ‘yellow’ ‘green’, ‘blue’ and ‘purple’) this is the current code I have, any help would be great thanks ! new here. from tkinter import * import random root = Tk() class Recta: def __init__(self, height, width, colours = []): self.height=80 self.width=100 def randomRects(self,canvas): w = random.randrange(100) h = random.randrange(80) canvas.create_rectangle(0,0,h,w,fill='green') frame = Frame(root, bg='grey', width=400, height=40) frame.pack(fill='x') frame = Frame(root, bg='grey', width=400, …

Member Avatar
Member Avatar
+0 forum 2

Hello all hope all is well, Im new to c# and new to the site so bare with a noob :). any way I have an assignment and Im running in to a problem where I don't know how to have c# read a text file and turn the numbers into the text file in to an array. To top it all off I need it to pass the parameters in to a text file. using python as a example i need it to look like this: def readFile (filename): data = [] source = file (filename) for line in …

Member Avatar
Member Avatar
+0 forum 1

void PatratTexturat(PATRAT patrat, int numar) { switch(numar) { case 1: if(numar==1) glBindTexture(GL_TEXTURE_2D, id_textura[2]); else glBindTexture(GL_TEXTURE_2D,id_textura[3]); break; case 2: if(numar==2) glBindTexture(GL_TEXTURE_2D, id_textura[4]); else glBindTexture(GL_TEXTURE_2D, id_textura[5]); break; case 3: if(numar==3) glBindTexture(GL_TEXTURE_2D, id_textura[6]); else glBindTexture(GL_TEXTURE_2D, id_textura[7]); case 4: if(numar==4) { glBindTexture(GL_TEXTURE_2D, id_textura[8]); } else { glBindTexture(GL_TEXTURE_2D, id_textura[9]); } break; case 5: glBindTexture(GL_TEXTURE_2D,id_textura[10]); break; case 6: glBindTexture(GL_TEXTURE_2D,id_textura[11]); break; case 7: glBindTexture(GL_TEXTURE_2D,id_textura[12]); break; case 8: glBindTexture(GL_TEXTURE_2D,id_textura[13]); break; case 9: glBindTexture(GL_TEXTURE_2D,id_textura[14]); break; default: glBindTexture(GL_TEXTURE_2D, NULL); break; } glBegin(GL_QUADS); glTexCoord2f(0.0,0.0); glVertex2f(patrat.stanga,patrat.jos); glTexCoord2f(1.0,0.0); glVertex2f(patrat.dreapta,patrat.jos); glTexCoord2f(1.0,1.0); glVertex2f(patrat.dreapta,patrat.sus); glTexCoord2f(0.0,1.0); glVertex2f(patrat.stanga,patrat.sus); glEnd(); } I have the code above and i get the error that `case` may only be used in a …

Member Avatar
Member Avatar
+0 forum 4

void PatratTexturat(PATRAT patrat, int numar) { switch(numar) { case 1: if(numar==1) glBindTexture(GL_TEXTURE_2D, id_textura[2]); else glBindTexture(GL_TEXTURE_2D,id_textura[3]); break; case 2: if(numar==2) glBindTexture(GL_TEXTURE_2D, id_textura[4]); else glBindTexture(GL_TEXTURE_2D, id_textura[5]); break; case 3: if(numar==3) glBindTexture(GL_TEXTURE_2D, id_textura[6]); else glBindTexture(GL_TEXTURE_2D, id_textura[7]); case 4: if(numar==4) { glBindTexture(GL_TEXTURE_2D, id_textura[8]); } else { glBindTexture(GL_TEXTURE_2D, id_textura[9]); } break; case 5: glBindTexture(GL_TEXTURE_2D,id_textura[10]); break; case 6: glBindTexture(GL_TEXTURE_2D,id_textura[11]); break; case 7: glBindTexture(GL_TEXTURE_2D,id_textura[12]); break; case 8: glBindTexture(GL_TEXTURE_2D,id_textura[13]); break; case 9: glBindTexture(GL_TEXTURE_2D,id_textura[14]); break; default: glBindTexture(GL_TEXTURE_2D, NULL); break; } glBegin(GL_QUADS); glTexCoord2f(0.0,0.0); glVertex2f(patrat.stanga,patrat.jos); glTexCoord2f(1.0,0.0); glVertex2f(patrat.dreapta,patrat.jos); glTexCoord2f(1.0,1.0); glVertex2f(patrat.dreapta,patrat.sus); glTexCoord2f(0.0,1.0); glVertex2f(patrat.stanga,patrat.sus); glEnd(); } I have the code above and i get the error that `case` may only be used in a …

Member Avatar
Member Avatar
+0 forum 2

hy its me behram i need to submit my project can anyone give me idea for making desktop app;ication using java

Member Avatar
Member Avatar
+0 forum 1

Hello Dani web. This is my first post here so please bear with me if its not 100% correctly setup. Anyways I'm a rookie to php and mysql and I've run into problem with my final project in my first php class. The error given is: "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\lokaverkefni\signing.php on line 18" All databases in mysql are correct. Anyways to share the php code, heres the following. sign_in.php [CODE] <?php if (isset($_COOKIE['member'])) { include "admin_login.php"; } else { include "signing.php"; } ?>[/CODE] signing.php [CODE]<?php $hostUrl = 'localhost'; $userName = 'root'; $connectID …

Member Avatar
Member Avatar
+0 forum 8

Hello, I'm just new here. I wanted some people to help me with my project. We were tasked to do a game using Turbo C. I already found some games that has source codes like snake, tic toe, etc. I wanted to be slightly different 'cause I know my classmates would just go and research already made codes and make it their own. Can you guys help me? I wanted to ask a lot of questions for our Project. I was planning of creating a visual-novel-like game and a piece of sword slashing or turn based game. What statements can …

Member Avatar
Member Avatar
+0 forum 23

//thanks to GameAlchemist function createCountDown(timeRemaining) { var startTime = Date.now(); return function() { return timeRemaining - ( Date.now() - startTime ); } } var currentCountDown = createCountDown(30000); // Draw everything var render = function () { var countDownValue = currentCountDown(); returnKillsNeeded(stageNum); ctx.drawImage(startGameImg, 0,0); ctx.font = "24px Helvetica"; ctx.textAlign = 'center' ctx.textBaseline = "top"; ctx.fillStyle="#FF0000"; ctx.fillText("press Enter to play", 250, 450); ctx.fill(); if(gameStart){ if (bgReady) { ctx.drawImage(bgImage, 0, 0); } ctx.fillStyle="#522900"; ctx.fillRect(0,480,500,120); ctx.drawImage(scoreImg, 22,522); ctx.drawImage(livesImg, 360,522); ctx.drawImage(progressImg, 200,492); createProgressBar(); createProgressPercent(); ctx.fillText("progress", 170,492); setEnemyHealthText(); drawPlayer(); if(countDownValue <=0){ countDownValue = 0; }else{ ctx.fillText(countDownValue, 200,190); }

Member Avatar
Member Avatar
-1 forum 4

How to add a score and collision detection between fruit and myAvatar? <html> <head> <script type='text/javascript' src='script.js'></script> <link rel='stylesheet' type='text/css' href='style.css'> <style> canvas { border: 1px solid #d3d3d3; margin-left: auto; margin-right: auto; } </style> </head> <body id="main1" background="Background.jpg" onload="startGame()"> <p id="text1">TIME: </p><div id="timer"></div> <script type="text/javascript"> function countdown (minutes){ var seconds = 60; var mins = minutes; function tick(){ var counter = document.getElementById("timer"); var current_minutes = mins-1; seconds--; counter.innerHTML = "0" + current_minutes.toString() + ":" + (seconds < 10 ? "0":"") + String(seconds); if(seconds > 0){ setTimeout(tick,1000);//time will countdown every 1 second }else{ if(mins > 1){ setTimeout(function(){countdown(mins-1);},1000); } } } tick();//to …

Member Avatar
Member Avatar
-2 forum 5

how to interact in multiple modules, can anyone suggest any link or tutorial

Member Avatar
Member Avatar
+0 forum 1

The End.