Recent

Author Topic: Scrabble3D  (Read 17066 times)

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Scrabble3D
« on: November 26, 2009, 10:33:51 am »
Scrabble3D is a highly customizable Scrabble game that not only supports Classic Scrabble and Superscrabble but also 3D games and own boards. You can play local against the comuter or connect to a game server to find other players.

Features:
* configurable board, letterset and design
* play against computer with support of multithreading
* post-hoc game analysis with calculation of best move
* match with other players connected to a game server
* NSA rating at game server
* comming soon: localization, translation, time limit of games

Windows 32bit: Scrabble3D-win32.zip
Linux 64bit: Scrabble3D-x86_64.gz
Linux 32bit: Scrabble3D-i386.gz
Source code: scrabble.tar.gz

I'd like to encourage critizing my coding style.  8-)
Lazarus 1.7 (SVN) FPC 3.0.0

bee

  • Sr. Member
  • ****
  • Posts: 393
Re: Scrabble3D
« Reply #1 on: November 26, 2009, 11:44:44 am »
Any plan to support Mac OS X, both 32 bit and 64 bit? :)
-Bee-

A long time pascal lover.

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Scrabble3D
« Reply #2 on: November 26, 2009, 11:50:14 am »
Very nice, professional and good as far I could see.
You forgot to translate some stuff to english, like Schlissen, Abrechen,... hoever those are minor details

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Scrabble3D
« Reply #3 on: November 26, 2009, 02:57:09 pm »
Quote
Mac OS X, both 32 bit and 64 bit
If I'll get running a hackintosh... :-[
It's open source. If anyone could compile it I would place the executable online.

Quote
You forgot to translate some stuff to english
Thats ugly. I translated nothing, yet. I thought standard captions are given by system.
Lazarus 1.7 (SVN) FPC 3.0.0

fredycc

  • Sr. Member
  • ****
  • Posts: 265
Re: Scrabble3D
« Reply #4 on: November 26, 2009, 05:04:17 pm »
Good job, very nice and the most important "Open Source", Works fine in my Vista Ultimate.
Maybe in Pocket?

regards from México.

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Scrabble3D
« Reply #5 on: November 26, 2009, 06:37:58 pm »
Looks very nice and professional. Way to go!
Lazarus/FPC on Linux

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: Scrabble3D
« Reply #6 on: November 26, 2009, 06:51:58 pm »
Nice job mate!

But what is the purpose of 3D view? Just for fun or can I create words in 3rd dimension?

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Scrabble3D
« Reply #7 on: November 26, 2009, 09:38:40 pm »
Quote
purpose of 3D view
Load a dictionary, start a new game and try the light bulb (that computes a move).  8)
In the settings there is an option for playing in 2 or 3 dimensions. For 3D all rules are applied but a word can be placed not only in a row/column but in the depth as well. The letters are placed on the 2D view of the current "active plane" (a transparent area in the 3d cube). This plane can be moved with ctrl+mouse wheel and switched to another dimension (xy, xz, yz) by ctrl+right mouse click. I wrote a hint that appears on the panel header.
Of course, I'd like to hear any objections about my ergonomics.
Lazarus 1.7 (SVN) FPC 3.0.0

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Scrabble3D
« Reply #8 on: November 27, 2009, 05:09:18 pm »
Tell me, how did you do the MDI form effect? Did you use a TPanel or what?

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Scrabble3D
« Reply #9 on: November 27, 2009, 05:44:31 pm »
It's a TPanel with a smaller TPanel as header and some OnMouseMove/OnMouseOver functions. Have a look at umoveablepanel.pas, it's not too difficult. But one should keep in mind Z-order and overlapping. After moving or resizing I sort all panels by size and apply bringtofront (umain.pas and utypes.pas). Last but not least I implemented a standalone feature for each of these moveablepanel (right click on the panel header). That creates a form and moves panel content into. Closing the form moves content back. Maybe someone would call it gimmick  :D
Lazarus 1.7 (SVN) FPC 3.0.0

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Scrabble3D
« Reply #10 on: November 27, 2009, 06:37:26 pm »
For some reason I cannot run your pre-built binaries for Linux. I rebuilt scrabble3d.lpi on Ubuntu 9.10 32-bit (quite an adventure, actually) and it runs without errors (well, the opengl panel is somewhat tricky but it's a glscene issue, I guess). However, to compile umain.pas and ulocalmessage.pas I had to edit the files (the booltostr() function only takes 2 params; and a case statement using strings had to be converted to if..then..else statements).

I think the Scrabble3D project is a very good integrated example for many features available in Lazarus/FPC in combination with open-source third-party libraries and components.
« Last Edit: November 27, 2009, 06:48:36 pm by Troodon »
Lazarus/FPC on Linux

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Scrabble3D
« Reply #11 on: November 27, 2009, 10:59:25 pm »
It would be interesting why the binary doesn't work for you. Did you try ldd?
The case of string statements are a nice feature of the new compiler (since 2.5.1 I guess). At least with Ubuntu 9.04 64bit glscene runs well. Any need to patch something?
Lazarus 1.7 (SVN) FPC 3.0.0

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Scrabble3D
« Reply #12 on: November 28, 2009, 01:19:15 am »
They do run, my mistake. The error message I was getting was ambiguous, see attachment; actually I had forgotten to "chmod +x" them :)
« Last Edit: November 28, 2009, 05:31:44 am by Troodon »
Lazarus/FPC on Linux

 

TinyPortal © 2005-2018