Author Topic: FET Implementaion in Javascript  (Read 100 times)

0 Members and 1 Guest are viewing this topic.

Devrim Altınkurt

  • Level 1
  • *
  • Posts: 26
  • MCPD, MCT, ICT Teacher.
    • View Profile
    • daltinkurt.com
FET Implementaion in Javascript
« on: July 22, 2017, 03:42:50 PM »
I tried to convert fet algorithm to javascript.
and finally did. (only the base algorithm, not rules)

I hope that someone can convert the rules and other codes.

here is the live preview.
http://daltinkurt.com/FET_JS/default.html
(please take a look at the console window.)

and here ise the source code.
http://daltinkurt.com/FET_JS/FET_JS.zip

some codes maybe contains Turkish words. but I think you can understand what they are for.
I only wanted to share my code with you. :)
« Last Edit: July 22, 2017, 03:47:33 PM by Devrim Altınkurt »

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5003
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: FET Implementaion in Javascript
« Reply #1 on: July 22, 2017, 04:36:32 PM »
Thank you for letting us know! I had a quick view. But I think you did not treat the whole generate.cpp (with all the kinds of constraints)?

Devrim Altınkurt

  • Level 1
  • *
  • Posts: 26
  • MCPD, MCT, ICT Teacher.
    • View Profile
    • daltinkurt.com
Re: FET Implementaion in Javascript
« Reply #2 on: July 22, 2017, 04:42:03 PM »
Thank you for letting us know! I had a quick view. But I think you did not treat the whole generate.cpp (with all the kinds of constraints)?

it is really hard to convert whole generate.cpp. :)

Liviu Lalescu

  • Forum Administrator
  • Level 5
  • *****
  • Posts: 5003
  • FET author and forum moderator
    • View Profile
    • Homepage
Re: FET Implementaion in Javascript
« Reply #3 on: July 22, 2017, 04:44:02 PM »
I saw a QList somewhere in your code, did you create this class with some tricks?

Devrim Altınkurt

  • Level 1
  • *
  • Posts: 26
  • MCPD, MCT, ICT Teacher.
    • View Profile
    • daltinkurt.com
Re: FET Implementaion in Javascript
« Reply #4 on: July 22, 2017, 04:48:02 PM »
I saw a QList somewhere in your code, did you create this class with some tricks?
This is pure javascript.
I implemented it myself.