Re: Cannot run exe from asp.net Programming Web Development by john_111 …, the entire world wide web would be hacked into tiny pieces and cease to exist. No one would ever use the… Re: Hanayama Cast Puzzles - Mind bracing riddles Community Center Geeks' Lounge by Emma_Rose Absolutely, I love puzzles! đź§© The Cast Radix sounds like an awesome challenge—level 4 definitely isn’t a walk in the park. There’s something super satisfying about taking apart a well-crafted metal puzzle and figuring out the perfect movements to get it back together. And yes, that solid, high-quality feel makes a big difference—it’s like the … Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …*dim_square,tile_center+j*dim_square canvas.coords(closest, x_center, y_center) pieces[d]=pieces[b] pieces[b]="O" print(tour) clic=0 check… Xcode How can I move game pieces from one place to another Programming Software Development by pinkPanda … trying to do is moving player pieces from their positions how can I implement moving pieces from [number]positions to [number]positions… filed A & B represent player pieces (like in chess) each player have 3 pieces and I placed image view on each… 1 to either position 0 or 2 or place another pieces the player can't move the piece to any other… C++: Random Pieces Programming Software Development by invisal … up, but it is a collection of C++ pieces that I have learnt during these past few years … this e-book "[B][I]C++: Random Pieces[/I][/B]". It is still incomplete. I decide…] There will be around 20 to 25 C++ pieces that will be included in this e-book. I… have finished the first 4 pieces so far. Firstly, I will post the first… [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …quot;) whiter=PhotoImage(file="./pieces_image/whiter.gif") pieces=[blackb,blackk,blackn,blackp,blackq,blackr,whiteb,whitek,whiten,whitep…quot;P": board_representation[i][j]=letter for p in pieces: piecesx=i piecesy=j if i<tiles-1:… Re: C++: Random Pieces Programming Software Development by gashtio … people posting tutorials, but I have to disagree with both pieces you posted. You need not do any of these things… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …, I still have the problem that it doesn't display pieces on the board :(. =========== RESTART: C:\Users\Thierry\Desktop\Chess\Chessboard… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry Thanks for your help, it's a better way than mine for moving a piece. However, it doesn't solve the main problem that is : "Why after read the ".lvl" file, it doesn't put pieces on the board ?" Re: [PYTHON] Place pieces on a chessboard Programming by Gribouillis I cannot run your code because I don't have the images of the pieces and the lvl file. Can you zip the folder pieces_image and attach the zip to a post ? Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry ….x y2=event.y canvas.coords(closest, x2, y2) However, pieces can move everywhere because the move is defined by x… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry … states' variables to only allow players to move their own pieces. Unfortunatedly, I never did that before so I think to… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry … I don't know why I still can move black pieces at the first turn. I asked yet to reload the… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry … to convert my coordinates [i][j] to find the correct pieces on my board [0 to 63] from the top-left… Photo pieces compiled in table Programming Web Development by Borderline … to piece together photos on my website. I have the pieces in the correct order, but there is white space between… split a string of words into pieces and print Programming Software Development by -obol- Hey everybody im a real newbee at python and im just wondering how to split a string of words into pieces and print on separate lines for example: " sun is shining" to: sun is shining i know this might be a simple task for a lot of people but i would appreciate any help that i can get. THANX //OBOL Re: split a string of words into pieces and print Programming Software Development by jlm699 …=-obol-;847982]how to split a string of words into pieces [/QUOTE] Use the [icode]split()[/icode] method like so: [code… C++ newbie: how to extract pieces of a line from a text file Programming Software Development by Annettest …, but I can't figure out how to extract certain pieces of it. I would very much appreciate any help and… Re: C++ newbie: how to extract pieces of a line from a text file Programming Software Development by Greywolf333 …, but I can't figure out how to extract certain pieces of it. I would very much appreciate any help and… Reading two pieces of data from each line Programming Software Development by Lightslei I need the program to read 2 pieces of data from each line of a text. For example … How do I use classes as pieces in a board game? Programming Software Development by zack_falcon …, I found out that other programmers use classes for the pieces. I'm no expert in classes. I've only used… Re: How do I use classes as pieces in a board game? Programming Software Development by Ketsuekiame … or enums (preferred) Also, you can use inheritence. If the pieces all share common properties, but there are unique properties required… Re: How do I use classes as pieces in a board game? Programming Software Development by zack_falcon …, and Rank 15 repeats twice, for a total of 21 pieces. Per player. What I had in mind was 15 classes… Re: How do I use classes as pieces in a board game? Programming Software Development by Ketsuekiame … of properties is, as you can see above, all the pieces have a rank and a pieceposition. It doesn't matter… Re: How do I use classes as pieces in a board game? Programming Software Development by Ketsuekiame … to store about that player. Their name, their score, what pieces they have etc. A player is an object in your… Re: C++: Random Pieces Programming Software Development by invisal [B][COLOR="Red"]1st Piece[/COLOR][/B]: [B]Reduce the Calculation[/B] [INDENT] Computer is well-known of its ability to calculate arithmetic operation in an instant. Because it performs so fast that make some people think it will make no difference to do extra calculation. Keep that in mind that it still does spend minor time in each … Re: C++: Random Pieces Programming Software Development by invisal [B][COLOR="red"]2nd Piece [/COLOR][/B]: [B]Everything Is Not the Same [/B] [INDENT]Not every arithmetic operation takes same time to compute. Some might take longer and some might take shorter to compute. Subtraction and addition operator perform faster than multiplication, and multiplication performs faster than division. [attach]14495… Re: C++: Random Pieces Programming Software Development by tux4life [QUOTE=invisal;1196688][B][COLOR="Red"]1st Piece[/COLOR][/B]: [B]Reduce the Calculation[/B] [INDENT] For example: [icode]k = (168 * m) / 2;[/icode] This can be reduced to: [icode]k = 84 * m;[/icode] [/INDENT][/QUOTE] Uh? You meant: [ICODE]k = 84 * m / 2;[/ICODE] [QUOTE=invisal;1196692][B][COLOR="red"]2nd Piece [/COLOR… Re: C++: Random Pieces Programming Software Development by invisal [QUOTE=tux4life;1196707]Uh? You meant: [ICODE]k = 84 * m / 2;[/ICODE][/QUOTE] I think [icode](168 * m) / 2 = 84 * m[/icode] [QUOTE=tux4life;1196707] AFAIK, [ICODE]k <<= 1;[/ICODE] is the most efficient way to do a multiplication by two.[/QUOTE] Shift left is slightly slower than addition operator in modern processor. Re: C++: Random Pieces Programming Software Development by Narue [B]>If you find any grammatically mistake or you have better >way of explain the point, please do not hesitate to correct.[/B] Which amounts to rewriting your prose, I'm afraid. It's very clearly written by someone with grammar habits from another language, and those habits are hard to break with a few quick corrections. A dedicated editor…