Re: [E-devel] elemines 0.2

2013-02-12 Thread Jérôme Pinot
On 02/09/13 00:05, Igor Murzov wrote:
 On Sat, 2 Feb 2013 13:05:32 +0900
 Jérôme Pinot ngc...@gmail.com wrote:
 
  On 02/01/13 02:57, Igor Murzov wrote:
   On Sun, 20 Jan 2013 17:46:18 +0900
   Jérôme Pinot ngc...@gmail.com wrote:
   
I would like to announce the availability of elemines 0.2, the EFL
minesweeper clone. This new version has some improvements, like:

- scores management (using etrophy library)
- in game configuration
- middle click support (thanks to Sebastian Dransfeld)
   
   Middle click is still broken in elemines 0.2.1. Middle click should
   always open all remaining surrounding squares even if player set his
   flags to incorrect positions. In this case player should obviously
   stumble on a mine and lose the game.
  
  Well, I though that it was the expected behavior to do nothing if the
  flags was not correct. 
 
 No. There are no second chances on a mine field :)
 Open wrong square -- lose the game, that's it.
 
  I'm not very familiar with this feature and just
  added it because someone was nice enough to contribute it.
  Please try the this patch and let me know if it now works as expected.
 
 It didn't work as expected, so i changed the behaviour of elemines, so it
 behaves as i think it should. You can find the patches in attachments.
 
 Also, if you didn't push the translation yet, please reset it and apply
 new patch, which fixes one small translation issue. Thanks.
 
 
 -- Igor

I merged all your patches. Thanks!


-- 
Jérôme Pinot
http://ngc891.blogdns.net/


signature.asc
Description: Digital signature
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elemines 0.2

2013-02-08 Thread Igor Murzov
On Sat, 2 Feb 2013 13:05:32 +0900
Jérôme Pinot ngc...@gmail.com wrote:

 On 02/01/13 02:57, Igor Murzov wrote:
  On Sun, 20 Jan 2013 17:46:18 +0900
  Jérôme Pinot ngc...@gmail.com wrote:
  
   I would like to announce the availability of elemines 0.2, the EFL
   minesweeper clone. This new version has some improvements, like:
   
   - scores management (using etrophy library)
   - in game configuration
   - middle click support (thanks to Sebastian Dransfeld)
  
  Middle click is still broken in elemines 0.2.1. Middle click should
  always open all remaining surrounding squares even if player set his
  flags to incorrect positions. In this case player should obviously
  stumble on a mine and lose the game.
 
 Well, I though that it was the expected behavior to do nothing if the
 flags was not correct. 

No. There are no second chances on a mine field :)
Open wrong square -- lose the game, that's it.

 I'm not very familiar with this feature and just
 added it because someone was nice enough to contribute it.
 Please try the this patch and let me know if it now works as expected.

It didn't work as expected, so i changed the behaviour of elemines, so it
behaves as i think it should. You can find the patches in attachments.

Also, if you didn't push the translation yet, please reset it and apply
new patch, which fixes one small translation issue. Thanks.


-- Igor


0001-Add-russian-translation.patch.gz
Description: GNU Zip compressed data


0002-Refactor-and-improve-_clean-function.patch.gz
Description: GNU Zip compressed data


0003-Fix-middle-click-once-again.patch.gz
Description: GNU Zip compressed data


0004-Fix-flags-accounting.patch.gz
Description: GNU Zip compressed data


0005-Validate-user-data-to-prevent-endless-loop.patch.gz
Description: GNU Zip compressed data
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elemines 0.2

2013-02-01 Thread Jérôme Pinot
On 02/01/13 02:57, Igor Murzov wrote:
 On Sun, 20 Jan 2013 17:46:18 +0900
 Jérôme Pinot ngc...@gmail.com wrote:
 
  I would like to announce the availability of elemines 0.2, the EFL
  minesweeper clone. This new version has some improvements, like:
  
  - scores management (using etrophy library)
  - in game configuration
  - middle click support (thanks to Sebastian Dransfeld)
 
 Middle click is still broken in elemines 0.2.1. Middle click should
 always open all remaining surrounding squares even if player set his
 flags to incorrect positions. In this case player should obviously
 stumble on a mine and lose the game.

Well, I though that it was the expected behavior to do nothing if the
flags was not correct. I'm not very familiar with this feature and just
added it because someone was nice enough to contribute it.

Please try the this patch and let me know if it now works as expected.

BTW, thanks for your contributions, I committed your russian
translations to elemines and eperiodique.


-- 
Jérôme Pinot
http://ngc891.blogdns.net/
diff --git a/src/game.c b/src/game.c
index 172ab91..63be35c 100644
--- a/src/game.c
+++ b/src/game.c
@@ -297,6 +297,10 @@ click(void *data, Evas *e __UNUSED__, Evas_Object *obj, 
void *event_info)
   {
  for (j=y-1; j=y+1; j++)
{
+  /* if a bomb was not flagged, lose the game */
+  if ((matrix[i][j].mine == 1)  (matrix[i][j].flag == 0))
+_finish(i, j, EINA_FALSE);
+  /* count correctly detected bombs */
   if (!((i == x)  (j == y))  (matrix[i][j].flag == 1)
(matrix[i][j].mine == 1))
 flags++;


signature.asc
Description: Digital signature
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elemines 0.2

2013-01-31 Thread Igor Murzov
On Sun, 20 Jan 2013 17:46:18 +0900
Jérôme Pinot ngc...@gmail.com wrote:

 I would like to announce the availability of elemines 0.2, the EFL
 minesweeper clone. This new version has some improvements, like:
 
 - scores management (using etrophy library)
 - in game configuration
 - middle click support (thanks to Sebastian Dransfeld)

Middle click is still broken in elemines 0.2.1. Middle click should
always open all remaining surrounding squares even if player set his
flags to incorrect positions. In this case player should obviously
stumble on a mine and lose the game.


-- Igor

 - french translation
 - cosmetic changes (icons, background...)
 
 Elemines 0.2 requires EFL 1.7 and etrophy 0.5.1.
 
 I'm already packaging for Slackware, but if you like to see elemines
 in your distributuin and you can provide the build script/spec/etc,
 I'll be happy to add it in the source code, under packaging/
 
 Moreover, any help for translation is welcome (po file is really small).
 
 Website: http://elemines.sourceforge.net/ 
 Download: http://sourceforge.net/projects/elemines/files/0.2/ 
 Screenshot: http://elemines.sourceforge.net/shot2.jpg 
 
 Regards,
 
 -- 
 Jérôme Pinot
 http://ngc891.blogdns.net/

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] elemines 0.2

2013-01-20 Thread Jérôme Pinot
I would like to announce the availability of elemines 0.2, the EFL
minesweeper clone. This new version has some improvements, like:

- scores management (using etrophy library)
- in game configuration
- middle click support (thanks to Sebastian Dransfeld)
- french translation
- cosmetic changes (icons, background...)

Elemines 0.2 requires EFL 1.7 and etrophy 0.5.1.

I'm already packaging for Slackware, but if you like to see elemines
in your distributuin and you can provide the build script/spec/etc,
I'll be happy to add it in the source code, under packaging/

Moreover, any help for translation is welcome (po file is really small).

Website: http://elemines.sourceforge.net/ 
Download: http://sourceforge.net/projects/elemines/files/0.2/ 
Screenshot: http://elemines.sourceforge.net/shot2.jpg 

Regards,

-- 
Jérôme Pinot
http://ngc891.blogdns.net/


signature.asc
Description: Digital signature
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elemines 0.2

2013-01-20 Thread Igor Murzov
On Sun, 20 Jan 2013 17:46:18 +0900
Jérôme Pinot ngc...@gmail.com wrote:

 I would like to announce the availability of elemines 0.2, the EFL
 minesweeper clone. This new version has some improvements, like:
 
 - scores management (using etrophy library)
 - in game configuration
 - middle click support (thanks to Sebastian Dransfeld)

It's broken. Player can mark any random squares around a digit and
then double click on that digit and all correct surrounding squares
would be cleared even if flags were not set to correct positions.


-- Igor

 - french translation
 - cosmetic changes (icons, background...)
 
 Elemines 0.2 requires EFL 1.7 and etrophy 0.5.1.
 
 I'm already packaging for Slackware, but if you like to see elemines
 in your distributuin and you can provide the build script/spec/etc,
 I'll be happy to add it in the source code, under packaging/
 
 Moreover, any help for translation is welcome (po file is really small).
 
 Website: http://elemines.sourceforge.net/ 
 Download: http://sourceforge.net/projects/elemines/files/0.2/ 
 Screenshot: http://elemines.sourceforge.net/shot2.jpg 
 
 Regards,
 
 -- 
 Jérôme Pinot
 http://ngc891.blogdns.net/

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] elemines 0.2

2013-01-20 Thread ChunEon Park
interesting! i didn't launch it yet but are the scores shared on online?  
 


-Regards, Hermet- 
-Original Message-
From: Jérôme Pinotlt;ngc...@gmail.comgt; 
To: e-userslt;enlightenment-us...@lists.sourceforge.netgt;; 
Cc: e-devellt;enlightenment-devel@lists.sourceforge.netgt;; 
Sent: 2013-01-20 (일) 17:46:18
Subject: [E-devel] elemines 0.2

I would like to announce the availability of elemines 0.2, the EFL
minesweeper clone. This new version has some improvements, like:

- scores management (using etrophy library)
- in game configuration
- middle click support (thanks to Sebastian Dransfeld)
- french translation
- cosmetic changes (icons, background...)

Elemines 0.2 requires EFL 1.7 and etrophy 0.5.1.

I'm already packaging for Slackware, but if you like to see elemines
in your distributuin and you can provide the build script/spec/etc,
I'll be happy to add it in the source code, under packaging/

Moreover, any help for translation is welcome (po file is really small).

Website: http://elemines.sourceforge.net/ 
Download: http://sourceforge.net/projects/elemines/files/0.2/ 
Screenshot: http://elemines.sourceforge.net/shot2.jpg 

Regards,

-- 
Jérôme Pinot
http://ngc891.blogdns.net/

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel