Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #483 // Image distinguisher (trivial solution 1 - always returns true)

Lua code - Image distinction (learner)

-- Job: Distinguish two classes of images
-- Two images are supplied at once, one of each class.
-- Task is to find out if the two images are swapped or not.
--
-- input variables: img1, img2, solution [to last pair]
-- output: a function returning true or false (swapped or no)

return function()
  return true
end

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #483
Snippet name: Image distinguisher (trivial solution 1 - always returns true)
Eternal ID of this version: #483/1
Text MD5: 2ca57ffaa8757241bae00964bd72fa53
Author: stefan
Category:
Type: Lua code - Image distinction (learner)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-03-03 18:27:21
Source code size: 324 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 717 / 300
Referenced in: #484 - Image distinguisher by randomly selected color
#1027252 - webColorNamePairs
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)